mirror of
https://github.com/rfc1036/whois.git
synced 2026-08-01 07:20:13 +00:00
Convert queryformat() to in_domain()
This commit is contained in:
parent
45bdfcc27c
commit
842e142f1a
4
whois.c
4
whois.c
@ -633,9 +633,9 @@ char *queryformat(const char *server, const char *flags, const char *query)
|
||||
/* add useful default flags if there are no flags or multiple arguments */
|
||||
if (isripe) { }
|
||||
else if (strchr(query, ' ') || *flags) { }
|
||||
else if (streq(server, "whois.denic.de") && domcmp(query, ".de"))
|
||||
else if (streq(server, "whois.denic.de") && in_domain(query, "de"))
|
||||
strcat(buf, "-T dn" DENIC_PARAM_ACE DENIC_PARAM_CHARSET " ");
|
||||
else if (streq(server, "whois.dk-hostmaster.dk") && domcmp(query, ".dk"))
|
||||
else if (streq(server, "whois.dk-hostmaster.dk") && in_domain(query, "dk"))
|
||||
strcat(buf, "--show-handles ");
|
||||
|
||||
/* mangle and add the query string */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user