mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 08:33:24 +00:00
Add support for Brazilian IP Addresses. Example `whois 200.236.70.0'.
PR: 30676
This commit is contained in:
parent
a4233d5dc3
commit
3334b16966
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87536
@ -69,6 +69,7 @@ static const char rcsid[] =
|
||||
#define MNICHOST "whois.ra.net"
|
||||
#define QNICHOST_TAIL ".whois-servers.net"
|
||||
#define SNICHOST "whois.6bone.net"
|
||||
#define BNICHOST "whois.registro.br"
|
||||
#define DEFAULT_PORT "whois"
|
||||
#define WHOIS_SERVER_ID "Whois Server: "
|
||||
|
||||
@ -77,7 +78,7 @@ static const char rcsid[] =
|
||||
|
||||
#define ishost(h) (isalnum((unsigned char)h) || h == '.' || h == '-')
|
||||
|
||||
const char *ip_whois[] = { RNICHOST, PNICHOST, NULL };
|
||||
const char *ip_whois[] = { RNICHOST, PNICHOST, BNICHOST, NULL };
|
||||
const char *port = DEFAULT_PORT;
|
||||
|
||||
static char *choose_server(char *);
|
||||
|
Loading…
Reference in New Issue
Block a user