aboutsummaryrefslogtreecommitdiff
path: root/src/Uri.cpp
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2020-10-09 13:30:45 -0700
committerRichard Walters <rwalters@digitalstirling.com>2020-10-09 13:30:45 -0700
commit456ce952f2ba8e6cb9c63ee211b2fa7db49d9529 (patch)
tree3cae4aa6ad96283f2a1de94b9a0fc6e73a38b516 /src/Uri.cpp
parent87ae5a9f02cefc51fb24305ec79d37e4da40c4f0 (diff)
Fix bug in parsing IPv6 addresses
Fix bug where an IPv6 address ending in a double-colon was not considered valid (it was being considered as truncated).
Diffstat (limited to 'src/Uri.cpp')
-rw-r--r--src/Uri.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Uri.cpp b/src/Uri.cpp
index 3d8b4fa..2b15ede 100644
--- a/src/Uri.cpp
+++ b/src/Uri.cpp
@@ -370,7 +370,6 @@ namespace {
(position == address.length())
&& (
(state == ValidationState::COLON_BUT_NO_GROUPS_YET)
- || (state == ValidationState::AFTER_COLON_EXPECT_GROUP_OR_IPV4)
|| (state == ValidationState::COLON_AFTER_GROUP)
)
) { // trailing single colon