From 47be7d7c2a1cfb9a45121b9cb2b13b7c20af9587 Mon Sep 17 00:00:00 2001 From: Pavel Odintsov Date: Fri, 31 Aug 2018 16:07:51 +0100 Subject: [PATCH] Replaced custom host address crafting code to toStringWithPort --- pdns/dnsdist-web.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdist-web.cc b/pdns/dnsdist-web.cc index ca979a56cd..433374d4d5 100644 --- a/pdns/dnsdist-web.cc +++ b/pdns/dnsdist-web.cc @@ -433,7 +433,7 @@ static void connectionThread(int sock, ComboAddress remote, string password, str string serverName; if (state->name.empty()) - serverName = state->remote.toString() + ":" + std::to_string(state->remote.getPort()); + serverName = state->remote.toStringWithPort(); else serverName = state->getName(); -- 2.47.2