mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05: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)
|
||||
if err != nil {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue