From 1ca7597c7f4bc3f3ab390739e443b3826e67efa7 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 28 Mar 2018 12:38:17 +0200 Subject: [PATCH] string() doesn't do what you may expect :) --- dnscrypt-proxy/xtransport.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dnscrypt-proxy/xtransport.go b/dnscrypt-proxy/xtransport.go index 42b7f93d..7af821ae 100644 --- a/dnscrypt-proxy/xtransport.go +++ b/dnscrypt-proxy/xtransport.go @@ -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) }, }