]> granicus.if.org Git - pdns/commitdiff
remove hardcoding of port 53 for TCP/IP forwarded zones in recursor, to address ...
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 21 Dec 2016 13:07:56 +0000 (14:07 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 14 Feb 2017 13:01:08 +0000 (14:01 +0100)
(cherry picked from commit 1bde6efa9fa0331dbd431fb42f208b4df530d88c)

pdns/lwres.cc

index f3c1f23fcd11cfbfcb7935a9e2916db29ab72bde..e19787dbbe385f094553343cd1731ebf87d0c87a 100644 (file)
@@ -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;