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