summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-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