aboutsummaryrefslogtreecommitdiff
path: root/src/Uri.cpp
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2020-10-09 13:28:01 -0700
committerRichard Walters <rwalters@digitalstirling.com>2020-10-09 13:29:40 -0700
commit87ae5a9f02cefc51fb24305ec79d37e4da40c4f0 (patch)
tree494a83942c9869cca27946f30a9b029e52d0573c /src/Uri.cpp
parentf07d459a57b69cdcca340a1a41d4d6f6800da8ed (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/Uri.cpp')
-rw-r--r--src/Uri.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Uri.cpp b/src/Uri.cpp
index a556276..3d8b4fa 100644
--- a/src/Uri.cpp
+++ b/src/Uri.cpp
@@ -316,7 +316,7 @@ namespace {
if (c == ':') {
numDigits = 0;
++numGroups;
- state = ValidationState::AFTER_COLON_EXPECT_GROUP_OR_IPV4;
+ state = ValidationState::COLON_AFTER_GROUP;
} else if (c == '.') {
ipv4AddressEncountered = true;
break;