Use ipv6-compliant methodology for joining host port (#640)

* Use ipv6-compliant methodology for joining host port

* Fix change
This commit is contained in:
Ian Leue
2019-08-23 10:19:47 -04:00
committed by Kirill Danshin
parent c5413ffda8
commit d4833f60cb
+2 -1
View File
@@ -8,6 +8,7 @@ import (
"fmt"
"io"
"net"
"strconv"
"strings"
"sync"
"sync/atomic"
@@ -1653,7 +1654,7 @@ func addMissingPort(addr string, isTLS bool) string {
if isTLS {
port = 443
}
return fmt.Sprintf("%s:%d", addr, port)
return net.JoinHostPort(addr, strconv.Itoa(port))
}
// PipelineClient pipelines requests over a limited set of concurrent