mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-10 01:57:07 +01:00
Fix tests on Go tip (caused by golang/go#14827)
This commit is contained in:
parent
f14cdcc436
commit
ed0342f171
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue