Commit 3abd54ae authored by Ad Schellevis's avatar Ad Schellevis

style

parent cd3a9dff
......@@ -543,7 +543,7 @@ function openvpn_reconfigure($mode, $settings, $device_only = false)
if (is_ipaddr($ipaddr)) {
$iface_ip=$ipaddr;
} elseif (!empty($interface) && $interface != "any") {
if (substr($settings['protocol'], 3, 1) == "6") {
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