Project

General

Profile

« Previous | Next » 

Revision 7829c6d5

Added by Renato Botelho almost 9 years ago

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

  • added
  • modified
  • copied
  • renamed
  • deleted