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
1 changed files with 2 additions and 1 deletions

View File

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