summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-05-09 08:03:45 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-05-09 08:05:13 -0300
commitdb7a628c0f3bfefc2792908f1646fcb604eedd5c (patch)
tree440e5cd682b137ca8b912650ec7f01aea44b73dc /etc/inc/system.inc
parent19341491e34d2f003284cb7df03cad920116d196 (diff)
downloadpfsense-db7a628c0f3bfefc2792908f1646fcb604eedd5c.zip
pfsense-db7a628c0f3bfefc2792908f1646fcb604eedd5c.tar.gz
Replace all linklocal checks by is_linklocal()
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 a214a7f..f6b472e 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -440,7 +440,7 @@ function system_routing_configure($interface = "") {
;
else if (($interfacegwv6 <> "bgpd") && (is_ipaddrv6($gatewayipv6))) {
$ifscope = "";
- if(preg_match("/fe80:/i", $gatewayipv6))
+ if(is_linklocal($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