mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
Avoid /etc/services in whois command
Apparently IANA has abolished the WHOIS protocol and no longer lists it as a service. Therefore distros which naively create /etc/services from IANA's braindead recommendation will inadvertently break any tools that rely on /etc/services to determine this well-known Internet port.
This commit is contained in:
parent
eb40cb371d
commit
e9e8bbe6da
2 changed files with 3 additions and 5 deletions
|
@ -70,7 +70,7 @@ asm(".include \"libc/disclaimer.inc\"");
|
|||
#define RNICHOST "whois.ripe.net"
|
||||
#define VNICHOST "whois.verisign-grs.com"
|
||||
|
||||
#define DEFAULT_PORT "whois"
|
||||
#define DEFAULT_PORT "43" // IANA abolished WHOIS lool; avoid /etc/services
|
||||
|
||||
#define WHOIS_RECURSE 0x01
|
||||
#define WHOIS_QUICK 0x02
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue