mirror of
https://github.com/rfc1036/whois.git
synced 2026-08-01 07:20:13 +00:00
Default to whois.ripe.net when using long flags
This commit is contained in:
parent
2dc046b070
commit
33f174e956
4
whois.c
4
whois.c
@ -255,8 +255,8 @@ int main(int argc, char *argv[])
|
||||
if (getenv("WHOIS_HIDE"))
|
||||
hide_discl = HIDE_NOT_STARTED;
|
||||
|
||||
/* -v or -t has been used */
|
||||
if (!server && !*qstring)
|
||||
/* -v or -t or long flags have been used */
|
||||
if (!server && (!*qstring || *fstring))
|
||||
server = strdup("whois.ripe.net");
|
||||
|
||||
if (*qstring) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user