From 7cdfe39e4e35bd8d333ed21ce993cab60eefc016 Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 10 Nov 2014 23:45:29 +0100 Subject: [PATCH] Strengthen check --- etc/inc/system.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 87bbdb211..1b4de5e26 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -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}"));