From: Pavel Odintsov Date: Fri, 31 Aug 2018 15:07:51 +0000 (+0100) Subject: Replaced custom host address crafting code to toStringWithPort X-Git-Tag: dnsdist-1.3.3~128^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=47be7d7c2a1cfb9a45121b9cb2b13b7c20af9587;p=thirdparty%2Fpdns.git Replaced custom host address crafting code to toStringWithPort --- 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();