summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-11-10 23:45:29 +0100
committerErmal <eri@pfsense.org>2014-11-10 23:45:29 +0100
commit7cdfe39e4e35bd8d333ed21ce993cab60eefc016 (patch)
tree30d0e5b84fabee968b1dbdc5aab853d798481c7b /etc/inc/system.inc
parentf4443dce5434f465a16dad16c7ea31016c01625d (diff)
downloadpfsense-7cdfe39e4e35bd8d333ed21ce993cab60eefc016.zip
pfsense-7cdfe39e4e35bd8d333ed21ce993cab60eefc016.tar.gz
Strengthen check
Diffstat (limited to 'etc/inc/system.inc')
-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}"));
OpenPOWER on IntegriCloud