From 7b47bd4c3ce792e94eca430f22891eb1dd36bb3c Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 5 Apr 2012 20:13:44 +0000 Subject: Make vips vhid be unique per parent interface! --- etc/inc/openvpn.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc/openvpn.inc') diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index 01a6f6a..6575842 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -673,7 +673,7 @@ function openvpn_restart($mode, $settings) { 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")) + if ((strstr($settings['interface'], "_vip") && (get_carp_interface_status($settings['interface']) == "BACKUP")) return; /* start the new process */ -- cgit v1.1