Strengthen check
This commit is contained in:
parent
f4443dce54
commit
7cdfe39e4e
|
@ -518,7 +518,7 @@ function system_routing_configure($interface = "") {
|
|||
;
|
||||
else if (is_ipaddrv6($gatewayipv6)) {
|
||||
$ifscope = "";
|
||||
if (is_linklocal($gatewayipv6))
|
||||
if (is_linklocal($gatewayipv6) && !strpos($gatewayipv6, '%'))
|
||||
$ifscope = "%{$defaultifv6}";
|
||||
log_error("ROUTING: setting IPv6 default route to {$gatewayipv6}{$ifscope}");
|
||||
mwexec("/sbin/route change -inet6 default " . escapeshellarg("{$gatewayipv6}{$ifscope}"));
|
||||
|
|
Reference in New Issue