diff options
author | Renato Botelho <renato@netgate.com> | 2016-03-29 11:47:39 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-03-29 11:47:39 -0300 |
commit | 97f42a0590c0bad9bd233b84d6f3173f6bd38c11 (patch) | |
tree | 4e67947d075a9212e4f4d1728baf4e255b27bfad /src/usr/local | |
parent | a462a0ff733fc175b8bd18e49bf23e77fe634135 (diff) | |
download | pfsense-97f42a0590c0bad9bd233b84d6f3173f6bd38c11.zip pfsense-97f42a0590c0bad9bd233b84d6f3173f6bd38c11.tar.gz |
Use correct subnet mask for IPv6. Fixes #6039
Diffstat (limited to 'src/usr/local')
-rwxr-xr-x | src/usr/local/www/diag_dns.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/local/www/diag_dns.php b/src/usr/local/www/diag_dns.php index 7b1fb84..e17b2c8 100755 --- a/src/usr/local/www/diag_dns.php +++ b/src/usr/local/www/diag_dns.php @@ -99,7 +99,9 @@ if (isset($_POST['create_alias']) && (is_hostname($host) || is_ipaddr($host))) { if (!$isfirst) { $addresses .= " "; } - $addresses .= rtrim($re) . "/32"; + $re = rtrim($re); + $sn = is_ipaddrv6($re) ? '/128' : '/32'; + $addresses .= $re . $sn; $isfirst = false; } } |