]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix port, as noted by ph1 on IRC
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 14 Apr 2022 17:44:06 +0000 (19:44 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 14 Apr 2022 17:44:06 +0000 (19:44 +0200)
Without this, probed DoT actually becomes regular TCP.

pdns/syncres.cc

index 064efa2b2a361a023d6855f53fc10871aea8aea7..3a41d1043abb9a997f57bf9e6ea08271e652f8e9 100644 (file)
@@ -5369,7 +5369,8 @@ int SyncRes::doResolveAt(NsSet &nameservers, DNSName auth, bool flawedNSSet, con
             doDoT = true;
           }
           if (!doDoT && s_max_busy_dot_probes > 0 && shouldDoDoT(*remoteIP, d_now.tv_sec)) {
-              doDoT = true;
+            remoteIP->setPort(853);
+            doDoT = true;
           }
           bool forceTCP = doDoT;