summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-11-10 22:45:29 (GMT)
committerErmal <eri@pfsense.org>2014-11-10 22:45:29 (GMT)
commit7cdfe39e4e35bd8d333ed21ce993cab60eefc016 (patch)
tree30d0e5b84fabee968b1dbdc5aab853d798481c7b
parentf4443dce5434f465a16dad16c7ea31016c01625d (diff)
downloadunivnautes-7cdfe39e4e35bd8d333ed21ce993cab60eefc016.zip
univnautes-7cdfe39e4e35bd8d333ed21ce993cab60eefc016.tar.gz
univnautes-7cdfe39e4e35bd8d333ed21ce993cab60eefc016.tar.bz2
Strengthen check
-rw-r--r--etc/inc/system.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 87bbdb2..1b4de5e 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}"));