Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-01-18 | httpcaddyfile: Fix incorrect handling of IPv6 bind addresses (#4532) | Francis Lavoie | |
The `net.JoinHostPort()` function has some naiive logic for handling IPv6, it just checks if the host part has a `:` and if so it wraps the host part with `[ ]` but this causes our network type prefix to get wrapped as well, which is invalid for `caddy.NetworkAddress`. Instead, we can just concatenate the host and port manually here to avoid this side-effect. |