diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-05-09 08:03:45 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-05-09 08:05:13 -0300 |
commit | db7a628c0f3bfefc2792908f1646fcb604eedd5c (patch) | |
tree | 440e5cd682b137ca8b912650ec7f01aea44b73dc /usr/local/www/system_gateways_edit.php | |
parent | 19341491e34d2f003284cb7df03cad920116d196 (diff) | |
download | pfsense-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-x | usr/local/www/system_gateways_edit.php | 2 |
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)) { |