mirror of
https://github.com/versity/versitygw.git
synced 2026-04-25 07:00:31 +00:00
Use net.JoinHostPort instead of manual string formatting in buildServiceURLs so IPv6 addresses are properly wrapped in brackets. This fixes malformed URLs like "http://::1:7070" being presented as the default server URL in the WebUI login form when listening on an IPv6 address; they now correctly render as "http://[::1]:7070". Fixes #1926