ipsec: for previous

This commit is contained in:
Franco Fichtner 2018-11-26 00:01:49 +01:00
parent 14e0e4952e
commit 9dae2099b5

View File

@ -410,7 +410,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
/* if the remote gateway changed and the interface is not WAN then remove route */
if ($pconfig['interface'] != "wan") {
if ($pconfig['interface'] != 'wan') {
if ($old_ph1ent['remote-gateway'] != $pconfig['remote-gateway']) {
/* XXX does this even apply? only use of system.inc at the top! */
system_host_route($old_ph1ent['remote-gateway'], $old_ph1ent['remote-gateway'], true, false);