string(<int>) doesn't do what you may expect :)

This commit is contained in:
Frank Denis 2018-03-28 12:38:17 +02:00
parent e09f0875c1
commit 1ca7597c7f

View file

@ -11,6 +11,7 @@ import (
"net" "net"
"net/http" "net/http"
"net/url" "net/url"
"strconv"
"strings" "strings"
"sync" "sync"
"time" "time"
@ -84,7 +85,7 @@ func (xTransport *XTransport) rebuildTransport() {
} else { } else {
dlog.Debugf("[%s] IP address was not cached", host) dlog.Debugf("[%s] IP address was not cached", host)
} }
addrStr = ipOnly + ":" + string(port) addrStr = ipOnly + ":" + strconv.Itoa(port)
return dialer.DialContext(ctx, network, addrStr) return dialer.DialContext(ctx, network, addrStr)
}, },
} }