Commit ed0342f1 authored by Matthew Holt's avatar Matthew Holt

Fix tests on Go tip (caused by golang/go#14827)

parent f14cdcc4
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment