Introduce $RA_SERVER to set default whois server.
Requested by: nork Reviewed by: nork MFC after: 1 week
This commit is contained in:
parent
6ad20b92fb
commit
0c85b38216
@ -179,10 +179,12 @@ main(int argc, char *argv[])
|
||||
* back to NICHOST.
|
||||
*/
|
||||
if (host == NULL && country == NULL) {
|
||||
use_qnichost = 1;
|
||||
host = NICHOST;
|
||||
if (!(flags & WHOIS_QUICK))
|
||||
flags |= WHOIS_RECURSE;
|
||||
if ((host = getenv("RA_SERVER")) == NULL) {
|
||||
use_qnichost = 1;
|
||||
host = NICHOST;
|
||||
if (!(flags & WHOIS_QUICK))
|
||||
flags |= WHOIS_RECURSE;
|
||||
}
|
||||
}
|
||||
while (argc-- > 0) {
|
||||
if (country != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user