Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb-MCaw committed Sep 2, 2024
1 parent bddc37f commit 7b68f92
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/alire/alire-uri.adb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ package body Alire.URI is
-- This is a normal URI, so return with any trailing port removed
-- (note that the host may be an IPv6 address in square brackets)
if Has_Prefix (Auth, "[") then
return Head (Auth, "]:") & "]";
if Contains (Auth, "]:") then
return Head (Auth, "]:") & "]";
else
return Auth;
end if;
else
return Head (Auth, ":");
end if;
Expand Down

0 comments on commit 7b68f92

Please sign in to comment.