summaryrefslogtreecommitdiffstats
path: root/etc/rc.openvpn
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2013-10-11 02:20:39 -0700
committerRenato Botelho <garga@FreeBSD.org>2013-10-23 09:58:11 -0200
commit5d21bce0c6a9a5a198b9e34e1c3c02fbd4c61343 (patch)
treeb7a95a2916810f80b04bbaf88d6ae9359fdf5471 /etc/rc.openvpn
parentf8804b74f91523f447ce939250f4180dcc201bfa (diff)
downloadpfsense-5d21bce0c6a9a5a198b9e34e1c3c02fbd4c61343.zip
pfsense-5d21bce0c6a9a5a198b9e34e1c3c02fbd4c61343.tar.gz
Remove redundant test for OpenVPN resync_needed
Diffstat (limited to 'etc/rc.openvpn')
-rwxr-xr-xetc/rc.openvpn2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.openvpn b/etc/rc.openvpn
index 7ec7df8..d7193d8 100755
--- a/etc/rc.openvpn
+++ b/etc/rc.openvpn
@@ -54,7 +54,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))
$resync_needed = false;
}
}
OpenPOWER on IntegriCloud