From: bert hubert Date: Wed, 21 Dec 2016 13:07:56 +0000 (+0100) Subject: remove hardcoding of port 53 for TCP/IP forwarded zones in recursor, to address ... X-Git-Tag: rec-4.1.0-alpha1~347^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4804%2Fhead;p=thirdparty%2Fpdns.git remove hardcoding of port 53 for TCP/IP forwarded zones in recursor, to address #4799 --- diff --git a/pdns/lwres.cc b/pdns/lwres.cc index dd25144574..f7eb2506c1 100644 --- a/pdns/lwres.cc +++ b/pdns/lwres.cc @@ -173,9 +173,7 @@ int asyncresolve(const ComboAddress& ip, const DNSName& domain, int type, bool d s.bind(local); - ComboAddress remote = ip; - remote.sin4.sin_port = htons(53); - s.connect(remote); + s.connect(ip); uint16_t tlen=htons(vpacket.size()); char *lenP=(char*)&tlen;