mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
Fix issue with route add command
This commit is contained in:
parent
3166ac7eb2
commit
25e2c0a301
@ -687,7 +687,7 @@ function system_routing_configure($verbose = false, $interface = null, $monitor
|
||||
mwexec("/sbin/route delete {$cmd}", true);
|
||||
if ($fargw) {
|
||||
mwexecf('/sbin/route delete -%s %s -interface %s ', [$ipproto, $gatewayip, $interfacegw], true);
|
||||
mwexecf('/sbin/route add %s -%s -interface %s', [$ipproto, $gatewayip, $interfacegw], true);
|
||||
mwexecf('/sbin/route add -%s %s -interface %s', [$ipproto, $gatewayip, $interfacegw], true);
|
||||
} elseif (is_linklocal($gatewayip) && strpos($gatewayip, '%') === false) {
|
||||
$gatewayip .= "%{$interfacegw}";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user