diff options
author | jim-p <jimp@pfsense.org> | 2013-08-17 21:31:23 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-08-17 21:31:49 -0400 |
commit | 304161667b48e222562ab5905a0567bd3c9cff0c (patch) | |
tree | 97f2a6ab7d098172b31d61adb93042e106113bfa /usr/local | |
parent | 44e72b7c2506c3dc8258439d9aa21a8cb60f8ba9 (diff) | |
download | pfsense-304161667b48e222562ab5905a0567bd3c9cff0c.zip pfsense-304161667b48e222562ab5905a0567bd3c9cff0c.tar.gz |
Strip off scope before attempting to resolve the IPv6 IP here.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/diag_ndp.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/local/www/diag_ndp.php b/usr/local/www/diag_ndp.php index 91253b2..0f9ef9b 100755 --- a/usr/local/www/diag_ndp.php +++ b/usr/local/www/diag_ndp.php @@ -79,6 +79,7 @@ foreach ($rawdata as $line) { function _getHostName($mac,$ip) { if(is_ipaddr($ip)) { + list($ip, $scope) = explode("%", $ip); if(gethostbyaddr($ip) <> "" and gethostbyaddr($ip) <> $ip) return gethostbyaddr($ip); else |