routes should not be skipped when IPsec is on WAN, as WAN may not be the default gateway.

This commit is contained in:
Chris Buechler 2012-04-23 22:11:26 -04:00
parent 2fc4190faf
commit 58070e1cf7

View File

@ -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);
}
}
}