]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix trusted-notification-proxy port 8650/head
authorEdward Dore <5480052+spheron1@users.noreply.github.com>
Thu, 19 Dec 2019 17:48:42 +0000 (17:48 +0000)
committerGitHub <noreply@github.com>
Thu, 19 Dec 2019 17:48:42 +0000 (17:48 +0000)
Explicitly set the port for outgoing queries to the SuperMaster when using trusted-notification-proxy and EDNS Client Subnet

Closes #8584

pdns/packethandler.cc

index f1d4f28738828e26a6d98173647c753d2c4fe934..e0e78992fbd1ec9ea85dcd7ef41e23cf6a55313f 100644 (file)
@@ -786,7 +786,7 @@ int PacketHandler::trySuperMasterSynchronous(const DNSPacket& p, const DNSName&
 {
   ComboAddress remote = p.getRemote().setPort(53);
   if(p.hasEDNSSubnet() && ::arg().contains("trusted-notification-proxy", remote.toString())) {
-    remote = p.getRealRemote().getNetwork();
+    remote = p.getRealRemote().getNetwork().setPort(53);
   }
 
   Resolver::res_t nsset;