]> git.stg.codes - stg.git/blobdiff - stargazer/plugins/other/radius/radius.cpp
Remove x2str/unsigned2str in favor of std::to_string.
[stg.git] / stargazer / plugins / other / radius / radius.cpp
index 45a9d0e19446f80054df4c9bdf972b0ba79ef73f..ad9135a599331ada7b4f4aa41d6b0d1e21d79a0d 100644 (file)
@@ -362,7 +362,7 @@ void RADIUS::acceptTCP()
         m_logger(m_error);
         return;
     }
-    std::string remote = inet_ntostring(addr.sin_addr.s_addr) + ":" + x2str(ntohs(addr.sin_port));
+    std::string remote = inet_ntostring(addr.sin_addr.s_addr) + ":" + std::to_string(ntohs(addr.sin_port));
     printfd(__FILE__, "New TCP connection: '%s'\n", remote.c_str());
     m_conns.push_back(new Conn(*m_users, m_logger, *this, m_config, res, remote));
 }