Introduce $RA_SERVER to set default whois server.

Requested by:	nork
Reviewed by:	nork
MFC after:	1 week
This commit is contained in:
Hajimu UMEMOTO 2014-06-25 15:39:08 +00:00
parent fe01740653
commit f35f40c51f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267871

View file

@ -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) {