diff options
author | Marco d'Itri <md@linux.it> | 2014-10-15 15:20:04 +0200 |
---|---|---|
committer | Marco d'Itri <md@linux.it> | 2014-10-16 01:52:04 +0200 |
commit | d96160845111810ff5fb43abf384cfa4c204f8f7 (patch) | |
tree | 9b29221417af93e0d6abe45647c763162bf45838 /whois.c | |
parent | 29b1a3a9c33c93362bbb280b2517a5ae4f433db4 (diff) | |
download | whois-d96160845111810ff5fb43abf384cfa4c204f8f7.tar.gz |
Convert tld_serv_list to in_domain()
Diffstat (limited to 'whois.c')
-rw-r--r-- | whois.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -524,7 +524,7 @@ char *guess_server(const char *s) /* check the TLDs list */ for (i = 0; tld_serv[i]; i += 2) - if (domcmp(s, tld_serv[i])) + if (in_domain(s, tld_serv[i])) return strdup(tld_serv[i + 1]); /* use the default server name for "new" gTLDs */ |