aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbpkg/manifest.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbpkg/manifest.cxx b/libbpkg/manifest.cxx
index 3df1726..7514357 100644
--- a/libbpkg/manifest.cxx
+++ b/libbpkg/manifest.cxx
@@ -3153,12 +3153,12 @@ namespace bpkg
if (!authority || authority->host.empty ())
bad_url ("invalid host");
- if (authority->host.kind != url_host_kind::name)
- bad_url ("unsupported host type");
-
// Normalize the host name.
//
- lcase (authority->host.value);
+ // @@ Also add IPv4/6 addresses normalization.
+ //
+ if (authority->host.kind == url_host_kind::name)
+ lcase (authority->host.value);
// We don't distinguish between the absent and empty paths for the
// remote repository URLs.