diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/vpn.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index e65708a..0e21c68 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -911,7 +911,7 @@ EOD; else $parentinterface = $ph1ent['interface']; - if (($parentinterface <> "wan") && (is_ipaddr($rgip))) { + if (is_ipaddr($rgip)) { /* add endpoint routes to correct gateway on interface */ if (interface_has_gateway($parentinterface)) { $gatewayip = get_interface_gateway("$parentinterface"); @@ -928,8 +928,7 @@ EOD; } } } - } else if(is_ipaddr($rgip)) - mwexec("/sbin/route delete -host {$rgip}", true); + } } } |