]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Print port if != 53
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 11 Sep 2025 07:08:28 +0000 (09:08 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 11 Sep 2025 07:08:28 +0000 (09:08 +0200)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/recursordist/rec-cookiestore.cc

index 98ece82147c72a5847668dd739831fd6e34dc5c8..fd91565ab202f9beb7f3c12cd7bf896bcdb58b46 100644 (file)
@@ -47,7 +47,7 @@ uint64_t CookieStore::dump(int fileDesc) const
     count++;
     timebuf_t tmp;
     fprintf(filePtr.get(), "%s\t%s\t%s\t%s\t%s\n",
-            entry.d_address.toString().c_str(), entry.d_localaddress.toString().c_str(),
+            entry.d_address.toStringWithPortExcept(53).c_str(), entry.d_localaddress.toString().c_str(),
             entry.d_cookie.toDisplayString().c_str(),
             CookieEntry::toString(entry.d_support).c_str(),
             entry.d_lastupdate == std::numeric_limits<time_t>::max() ? "Forever" : timestamp(entry.d_lastupdate, tmp));