From e42b6dd75589309ad4f7844aeea29318ce052799 Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 29 Jun 2012 14:13:33 -0400 Subject: OpenVPN _servers_ can start on carp vips, just not _clients_. --- etc/inc/openvpn.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc') 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 */ -- cgit v1.1