Commit daa58810 authored by Ad Schellevis's avatar Ad Schellevis

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
parent 2b0cb7be
......@@ -543,9 +543,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 (substr($settings['protocol'], 3, 1) == "6") {
$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