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:23 -0400 |
commit | 5d6d1958958d1dd95e6147c3b37f7f64a99e41d1 (patch) | |
tree | f63fb6e35da7c2498ea03897891fc19907b4cbfa /usr | |
parent | 31202953719b1c30daf4e0f1bfeb64e95a969185 (diff) | |
download | pfsense-5d6d1958958d1dd95e6147c3b37f7f64a99e41d1.zip pfsense-5d6d1958958d1dd95e6147c3b37f7f64a99e41d1.tar.gz |
Strip off scope before attempting to resolve the IPv6 IP here.
Diffstat (limited to 'usr')
-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 |