Commit 6dc662c0 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

OpenVPN servers using udp6 or tcp6 fail to start, closes...

OpenVPN servers using udp6 or tcp6 fail to start, closes https://github.com/opnsense/core/issues/1576

(cherry picked from commit daa58810)
(cherry picked from commit 3abd54ae)
parent c24e1897
......@@ -457,9 +457,10 @@ function openvpn_reconfigure($mode, $settings, $device_only = false)
if (is_ipaddr($ipaddr)) {
$iface_ip=$ipaddr;
} elseif (!empty($interface) && $interface != "any") {
$iface_ip=get_interface_ip($interface);
if (empty($iface_ip)) {
if (stristr($settings['protocol'], "6") !== false) {
$iface_ip = get_interface_ipv6($interface);
} else {
$iface_ip = get_interface_ip($interface);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment