summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-11-06 15:40:36 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-11-06 15:40:36 +0000
commite9569d37216b293ee29a2f5377a4be87a3c6aca8 (patch)
tree53087f34389d8fb7c46be3ab42376e5471ef48e5 /etc/inc
parentcfec5019af28712e5b12c4e30a2be986b4ff7b66 (diff)
downloadpfsense-e9569d37216b293ee29a2f5377a4be87a3c6aca8.zip
pfsense-e9569d37216b293ee29a2f5377a4be87a3c6aca8.tar.gz
Correct Route lookup
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/vpn.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 66687e4..1c8563a 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -270,7 +270,7 @@ function vpn_ipsec_configure($ipchg = false) {
}
}
} else {
- if(preg_match("/{$tunnel['remote-gateway']}/", $route_str)) {
+ if(stristr($route_str, "/{$tunnel['remote-gateway']}/")) {
mwexec("/sbin/route delete -host {$tunnel['remote-gateway']}");
}
}
OpenPOWER on IntegriCloud