Skip to content

Commit

Permalink
Fix issue with route add command
Browse files Browse the repository at this point in the history
  • Loading branch information
idanoo authored and fichtner committed May 28, 2023
1 parent 3166ac7 commit 25e2c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/inc/system.inc
Expand Up @@ -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}";
}
Expand Down

0 comments on commit 25e2c0a

Please sign in to comment.