]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #4804 from ahupowerdns/tcp-forward
authorPieter Lexis <pieterlexis@users.noreply.github.com>
Tue, 10 Jan 2017 17:04:24 +0000 (18:04 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Jan 2017 17:04:24 +0000 (18:04 +0100)
remove hardcoding of port 53 for TCP/IP forwarded zones in recursor, …

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;