summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.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/gwlb.inc
parent19341491e34d2f003284cb7df03cad920116d196 (diff)
downloadpfsense-db7a628c0f3bfefc2792908f1646fcb604eedd5c.zip
pfsense-db7a628c0f3bfefc2792908f1646fcb604eedd5c.tar.gz
Replace all linklocal checks by is_linklocal()
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 5864733..e703893 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -165,7 +165,7 @@ EOD;
continue; //Skip this target
} else if (is_ipaddrv6($gateway['gateway'])) {
/* link locals really need a different src ip */
- if(preg_match("/fe80:/i", $gateway['gateway'])) {
+ if(is_linklocal($gateway['gateway'])) {
$linklocal = explode("%", find_interface_ipv6_ll($gateway['interface'], true));
$gwifip = $linklocal[0];
$ifscope = "%". $linklocal[1];
OpenPOWER on IntegriCloud