Add more robust hostsfile parsing

Adds hostsfile parsing support for:
* Tabs
* Comments (line and end of line)
* IPv4 address validation
* Basic IPv6 address validation
* End of line whitespaces
* Host name alias (multiple host names per address)

Fixes #5063
This commit is contained in:
Gilles Leblanc 2015-02-28 20:46:26 -05:00
parent 7fc37dfaa7
commit 0faa55d2ce
4 changed files with 152 additions and 14 deletions

View file

@ -29,3 +29,5 @@ time = "0.1.17"
openssl="0.3.1"
rustc-serialize = "0.2"
cookie="*"
regex = "*"
regex_macros = "*"