mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
Remove IPv6 subnet parsing in host files like ::1/64
The host replacement code doesn’t do anything useful with it. (It only compares strings.)
This commit is contained in:
parent
ed6a3f5022
commit
0dfdc94cb2
2 changed files with 3 additions and 6 deletions
|
@ -121,12 +121,9 @@ fn test_parse_hostsfile_with_valid_ipv6_addresses()
|
|||
0000:0000:0000:0000:0000:0000:0000:0001 bar.moz.com\n\
|
||||
::1 foo.bar.baz baz.foo.com\n\
|
||||
2001:0DB8:85A3:0042:1000:8A2E:0370:7334 baz.bar.moz\n\
|
||||
2002:0DB8:85A3:0042:1000:8A2E:0370:7334/96 baz2.bar.moz\n\
|
||||
2002:0DB8:85A3:0042:1000:8A2E:0370:7334/128 baz3.bar.moz\n\
|
||||
:: unspecified.moz.com\n\
|
||||
::/128 unspecified.address.com";
|
||||
:: unspecified.moz.com";
|
||||
let hosts_table = parse_hostsfile(mock_hosts_file_content);
|
||||
assert_eq!(12, (*hosts_table).len());
|
||||
assert_eq!(9, (*hosts_table).len());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue