Skip to content

Commit 2cf7e08

Browse files
committed
Revert "Fix HTTP-01 challenge for IPv6 literal addresses (#377)"
This reverts commit 60d9d8b.
1 parent 3e3363f commit 2cf7e08

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

certificates.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,9 +651,6 @@ func isInternalIP(addr string) bool {
651651
func hostOnly(hostport string) string {
652652
host, _, err := net.SplitHostPort(hostport)
653653
if err != nil {
654-
if len(hostport) > 2 && hostport[0] == '[' && hostport[len(hostport)-1] == ']' {
655-
return hostport[1 : len(hostport)-1]
656-
}
657654
return hostport // OK; probably had no port to begin with
658655
}
659656
return host

0 commit comments

Comments
 (0)