summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_router_advertisements.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-09-02 08:47:31 -0300
committerRenato Botelho <renato@netgate.com>2016-09-02 08:51:08 -0300
commit8402a8de579e3cd69761bcf7b900963b29f0c87e (patch)
tree0b8318298b811c433d294f943576086895314937 /src/usr/local/www/services_router_advertisements.php
parent3c09378ed6d1cbae03ec064fd4269e49a6a544b6 (diff)
downloadpfsense-8402a8de579e3cd69761bcf7b900963b29f0c87e.zip
pfsense-8402a8de579e3cd69761bcf7b900963b29f0c87e.tar.gz
Fix diag_dns ipaddr set to use in IP WHOIS and IP Info
- Do not call resolve_host_addresses() when hostname cannot be resolved by gethostbyname(). The old check was considering gethostbyname would return NULL in this case but it returns a string with the hostname passed on parameter - Since resolve_host_addresses() always return an array, look for the first A record to set $ipaddr, which will be used later to link with IP WHOIS and IP Info Based on Pull Request #3100 submitted by @NewEraCracker
Diffstat (limited to 'src/usr/local/www/services_router_advertisements.php')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud