feross / hostile

Simple, programmatic `/etc/hosts` manipulation (in node.js)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hostile.set allows for hostname='' (empty string)

Eeemil opened this issue · comments

Perhaps it would be neat to perform some simple hostname validation too, see https://stackoverflow.com/questions/106179/regular-expression-to-match-dns-hostname-or-ip-address

Thanks for reporting this issue. Due to time constraints, I don't have any plans to work on this so I'm going to close it. If you would like to see it fixed, please send a pull request!

mickey-wizard