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.0.5-rc1~21^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e7c183d851160542905d76e6691be85dfa6e14cc;p=thirdparty%2Fpdns.git remove hardcoding of port 53 for TCP/IP forwarded zones in recursor, to address #4799 (cherry picked from commit 1bde6efa9fa0331dbd431fb42f208b4df530d88c) --- diff --git a/pdns/lwres.cc b/pdns/lwres.cc index f3c1f23fcd..e19787dbbe 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;