Make whois capable of searching for IPv6 addresses just like it can
do for IPv4 addresses without having to explicetly specify that the ARIN server should be used to get the initial information PR: bin/128725 Submitted by: "Matt D. Harris" <mdh_lists@yahoo.com> MFC after: 1 week
This commit is contained in:
parent
3b81fe7712
commit
04961257f8
@ -215,6 +215,10 @@ choose_server(char *domain)
|
||||
{
|
||||
char *pos, *retval;
|
||||
|
||||
if (strchr(domain, ':')) {
|
||||
s_asprintf(&retval, "%s", ANICHOST);
|
||||
return (retval);
|
||||
}
|
||||
for (pos = strchr(domain, '\0'); pos > domain && *--pos == '.';)
|
||||
*pos = '\0';
|
||||
if (*domain == '\0')
|
||||
|
Loading…
Reference in New Issue
Block a user