summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-06-06 14:24:10 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-06-06 14:24:10 +0000
commitf390206f4ae762974b40283e50ea8cc04c4054e0 (patch)
tree1c79caf425fc87e4151ba1d85fcbd952cb023be5 /etc/inc/vpn.inc
parentaad50aec8a75f5b751a0ed27a3ce3dd3f7283399 (diff)
downloadpfsense-f390206f4ae762974b40283e50ea8cc04c4054e0.zip
pfsense-f390206f4ae762974b40283e50ea8cc04c4054e0.tar.gz
Correctly process non carp interfaces
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 95f1918..24a3798 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -266,7 +266,11 @@ function vpn_ipsec_configure($ipchg = false) {
"{$ep}/unique;\n";
/* static route needed? */
- $parentinterface = link_carp_interface_to_parent($tunnel['interface']);
+ if(preg_match("/^carp/i", $tunnel['interface'])) {
+ $parentinterface = link_carp_interface_to_parent($tunnel['interface']);
+ } else {
+ $parentinterface = $tunnel['interface'];
+ }
if($parentinterface <> "wan") {
/* add endpoint routes to correct gateway on interface */
if(interface_has_gateway($parentinterface)) {
OpenPOWER on IntegriCloud