summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-04-05 20:13:44 +0000
committerErmal <eri@pfsense.org>2012-04-05 20:13:44 +0000
commit4d0c032c528b10221a2ef894b5eca34f6fda39a7 (patch)
treecc1e981428b5898366c14be962fa4b442bbe82bb /etc/inc/openvpn.inc
parentda664d195d9949c3c83be3a4fdc49bf42c40dc38 (diff)
downloadpfsense-4d0c032c528b10221a2ef894b5eca34f6fda39a7.zip
pfsense-4d0c032c528b10221a2ef894b5eca34f6fda39a7.tar.gz
Make vips vhid be unique per parent interface!
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r--etc/inc/openvpn.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 5369393..7d10f77 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 ((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 */
@@ -1025,4 +1025,4 @@ function openvpn_refresh_crls() {
}
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud