mirror of
https://github.com/caddyserver/caddy.git
synced 2025-07-09 03:04:57 -04:00
Fix tests on Go tip (caused by golang/go#14827)
This commit is contained in:
parent
f14cdcc436
commit
ed0342f171
@ -324,7 +324,9 @@ func standardAddress(str string) (address, error) {
|
|||||||
host, port, err := net.SplitHostPort(str)
|
host, port, err := net.SplitHostPort(str)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
host, port, err = net.SplitHostPort(str + ":")
|
host, port, err = net.SplitHostPort(str + ":")
|
||||||
// no error check here; return err at end of function
|
if err != nil {
|
||||||
|
host = str
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// see if we can set port based off scheme
|
// see if we can set port based off scheme
|
||||||
|
Loading…
x
Reference in New Issue
Block a user