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)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 21 Dec 2016 13:07:56 +0000 (14:07 +0100)
pdns/lwres.cc

index dd251445748c298bc48ef0962cc835d4af63849f..f7eb2506c1639976acef452690123568d6c2c369 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;