1
Fork 0
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:
Matthew Holt 2016-03-16 11:27:53 -06:00
parent f14cdcc436
commit ed0342f171

View file

@ -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