We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e3363f commit 2cf7e08Copy full SHA for 2cf7e08
1 file changed
certificates.go
@@ -651,9 +651,6 @@ func isInternalIP(addr string) bool {
651
func hostOnly(hostport string) string {
652
host, _, err := net.SplitHostPort(hostport)
653
if err != nil {
654
- if len(hostport) > 2 && hostport[0] == '[' && hostport[len(hostport)-1] == ']' {
655
- return hostport[1 : len(hostport)-1]
656
- }
657
return hostport // OK; probably had no port to begin with
658
}
659
return host
0 commit comments