Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
whois: fail for bad options & no args (#531)
* Print usage string for incorrect options; previously invalid option -X was treated as a domain name * Write "\r\n" to socket, not "\n\r" (hint taken from NetBSD code) * Don't connect to whois server if no domain arguments were provided; print usage string in this case * Make the different whois server options mutually exclusive * Test: I still get a positive response for "perl whois installgentoo.com"
- Loading branch information
Showing
1 changed file
with
32 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters