diff options
-rwxr-xr-x | etc/rc.openvpn | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.openvpn b/etc/rc.openvpn index 4cabffe..8cf9ea2 100755 --- a/etc/rc.openvpn +++ b/etc/rc.openvpn @@ -51,7 +51,7 @@ function openvpn_resync_if_needed ($mode, $ovpn_settings, $interface) { $new_device = get_failover_interface($ovpn_settings['interface']); if (isset($config['interfaces'][$interface])) { $this_device = $config['interfaces'][$interface]['if']; - if (($current_device == $new_device) || ($current_device != $this_device) || ($new_device != $this_device)) + if (($current_device == $new_device) && ($current_device != $this_device) && ($new_device != $this_device)) $resync_needed = false; } } |