From: Otto Moerbeek Date: Thu, 11 Sep 2025 07:08:28 +0000 (+0200) Subject: Print port if != 53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=756661718843f7d1dfed87e71af35842e3113820;p=thirdparty%2Fpdns.git Print port if != 53 Signed-off-by: Otto Moerbeek --- diff --git a/pdns/recursordist/rec-cookiestore.cc b/pdns/recursordist/rec-cookiestore.cc index 98ece8214..fd91565ab 100644 --- a/pdns/recursordist/rec-cookiestore.cc +++ b/pdns/recursordist/rec-cookiestore.cc @@ -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::max() ? "Forever" : timestamp(entry.d_lastupdate, tmp));