]> granicus.if.org Git - pdns/commitdiff
Replaced custom host address crafting code to toStringWithPort
authorPavel Odintsov <pavel@cloudflare.com>
Fri, 31 Aug 2018 15:07:51 +0000 (16:07 +0100)
committerPavel Odintsov <pavel@cloudflare.com>
Fri, 31 Aug 2018 15:07:51 +0000 (16:07 +0100)
pdns/dnsdist-web.cc

index ca979a56cd660bec1940e57ad300916033e62ecb..433374d4d56eac215e165a058208d8687693d75a 100644 (file)
@@ -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();