summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-06-29 14:13:33 -0400
committerjim-p <jimp@pfsense.org>2012-06-29 14:13:33 -0400
commite42b6dd75589309ad4f7844aeea29318ce052799 (patch)
tree33d4e5c5b3d286f98191a0f940c5ba75ef99daf4
parent003436be9f6c8109cfcffd6f42d98b2a8fafa54e (diff)
downloadpfsense-e42b6dd75589309ad4f7844aeea29318ce052799.zip
pfsense-e42b6dd75589309ad4f7844aeea29318ce052799.tar.gz
OpenVPN _servers_ can start on carp vips, just not _clients_.
-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 9e32853..305a983 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -625,8 +625,8 @@ function openvpn_restart($mode, $settings) {
if (isset($settings['disable']))
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"))
+ /* Do not start a client if we are a CARP backup on this vip! */
+ if (($mode == "client") && (substr($settings['interface'], 0, 3) == "vip") && (get_carp_interface_status($settings['interface']) == "BACKUP"))
return;
/* start the new process */
OpenPOWER on IntegriCloud