summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-06-29 14:12:07 -0400
committerjim-p <jimp@pfsense.org>2012-06-29 14:12:07 -0400
commit260f267e71c8ee8fce1f499a22cc94cd5627c1ba (patch)
tree144869c2e551d069fdb0c3d5f8c9b7509b749971 /etc/inc/openvpn.inc
parentc1993935fb745b5961ed611b824d24b8fde7cd9a (diff)
downloadpfsense-260f267e71c8ee8fce1f499a22cc94cd5627c1ba.zip
pfsense-260f267e71c8ee8fce1f499a22cc94cd5627c1ba.tar.gz
OpenVPN _servers_ can start on carp vips, just not _clients_.
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 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 */
OpenPOWER on IntegriCloud