Strengthen check

This commit is contained in:
Ermal 2014-11-10 23:45:29 +01:00
parent f4443dce54
commit 7cdfe39e4e
1 changed files with 1 additions and 1 deletions

View File

@ -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}"));