From e7c183d851160542905d76e6691be85dfa6e14cc Mon Sep 17 00:00:00 2001 From: bert hubert Date: Wed, 21 Dec 2016 14:07:56 +0100 Subject: [PATCH] remove hardcoding of port 53 for TCP/IP forwarded zones in recursor, to address #4799 (cherry picked from commit 1bde6efa9fa0331dbd431fb42f208b4df530d88c) --- pdns/lwres.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.47.2