diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/openvpn.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index 9e32853..305a983 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -625,8 +625,8 @@ function openvpn_restart($mode, $settings) { if (isset($settings['disable'])) return; - /* Do not start if we are a CARP backup on this vip! */ - if ((substr($settings['interface'], 0, 3) == "vip") && (get_carp_interface_status($settings['interface']) == "BACKUP")) + /* Do not start a client if we are a CARP backup on this vip! */ + if (($mode == "client") && (substr($settings['interface'], 0, 3) == "vip") && (get_carp_interface_status($settings['interface']) == "BACKUP")) return; /* start the new process */ |