From: Otto Moerbeek Date: Thu, 14 Apr 2022 17:44:06 +0000 (+0200) Subject: Fix port, as noted by ph1 on IRC X-Git-Tag: auth-4.8.0-alpha0~134^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9bea6fe3ee133b0075d34c30739298679393636e;p=thirdparty%2Fpdns.git Fix port, as noted by ph1 on IRC Without this, probed DoT actually becomes regular TCP. --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 064efa2b2a..3a41d1043a 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -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;