Commit 29153230 authored by Franco Fichtner's avatar Franco Fichtner

system: adjust static far gw routes too; mea culpa

Looks like this is working as intended now, shall be shipped with
16.1.16 after an extra round of testing.
parent 0ce997d0
......@@ -764,8 +764,8 @@ function system_staticroutes_configure($interface = '', $update_dns = false)
if (is_ipaddr($gatewayip)) {
mwexec("/sbin/route delete".$cmd . escapeshellarg($gatewayip));
if ($fargw) {
mwexecf('/sbin/route delete %s %s -interface %s', array($inet, $ip, $interfacegw));
mwexecf('/sbin/route add %s %s -interface %s', array($inet, $ip, $interfacegw));
mwexecf('/sbin/route delete %s %s -interface %s', array($inet, $gatewayip, $interfacegw));
mwexecf('/sbin/route add %s %s -interface %s', array($inet, $gatewayip, $interfacegw));
}
mwexec("/sbin/route add".$cmd . escapeshellarg($gatewayip));
} elseif (!empty($interfacegw)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment