diff options
author | Richard Walters <rwalters@digitalstirling.com> | 2020-10-09 13:28:01 -0700 |
---|---|---|
committer | Richard Walters <rwalters@digitalstirling.com> | 2020-10-09 13:29:40 -0700 |
commit | 87ae5a9f02cefc51fb24305ec79d37e4da40c4f0 (patch) | |
tree | 494a83942c9869cca27946f30a9b029e52d0573c /src/lib.rs | |
parent | f07d459a57b69cdcca340a1a41d4d6f6800da8ed (diff) |
Fix bug in IPv6 address parsing
Fix bug where IPv6 address ending in a group with only digits
followed by a double-colon would not get parsed correctly
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -358,7 +358,7 @@ fn validate_ipv6_address(address: &str) -> Result<(), Error> { if c == ':' { num_digits = 0; num_groups += 1; - ValidationState::AfterColonExpectGroupOrIpv4 + ValidationState::ColonAfterGroup } else if c == '.' { ipv4_address_encountered = true; break; |