diff options
author | jim-p <jimp@pfsense.org> | 2012-06-29 14:12:07 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-06-29 14:12:07 -0400 |
commit | 260f267e71c8ee8fce1f499a22cc94cd5627c1ba (patch) | |
tree | 144869c2e551d069fdb0c3d5f8c9b7509b749971 /etc | |
parent | c1993935fb745b5961ed611b824d24b8fde7cd9a (diff) | |
download | pfsense-260f267e71c8ee8fce1f499a22cc94cd5627c1ba.zip pfsense-260f267e71c8ee8fce1f499a22cc94cd5627c1ba.tar.gz |
OpenVPN _servers_ can start on carp vips, just not _clients_.
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 f5e72ab..00cf09a 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -683,8 +683,8 @@ function openvpn_restart($mode, $settings) { if (isset($settings['disable'])) 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")) + /* Do not start a client if we are a CARP backup on this vip! */ + if (($mode == "client") && strstr($settings['interface'], "_vip") && (get_carp_interface_status($settings['interface']) == "BACKUP")) return; /* start the new process */ |