summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways_edit.php
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 /usr/local/www/system_gateways_edit.php
parent19341491e34d2f003284cb7df03cad920116d196 (diff)
downloadpfsense-db7a628c0f3bfefc2792908f1646fcb604eedd5c.zip
pfsense-db7a628c0f3bfefc2792908f1646fcb604eedd5c.tar.gz
Replace all linklocal checks by is_linklocal()
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-xusr/local/www/system_gateways_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index ccaa59d..48f4dec 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -141,7 +141,7 @@ if ($_POST) {
}
else if(is_ipaddrv6($_POST['gateway'])) {
/* do not do a subnet match on a link local address, it's valid */
- if(! preg_match("/fe80:/i", $_POST['gateway'])) {
+ if(!is_linklocal($_POST['gateway'])) {
$parent_ip = get_interface_ipv6($_POST['interface']);
$parent_sn = get_interface_subnetv6($_POST['interface']);
if(empty($parent_ip) || empty($parent_sn)) {
OpenPOWER on IntegriCloud