X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..12b88fa193a36e0d4ed35b1912e5cf1dfe633ce6:/stargazer/plugins/configuration/sgconfig/conn.h?ds=sidebyside diff --git a/stargazer/plugins/configuration/sgconfig/conn.h b/stargazer/plugins/configuration/sgconfig/conn.h index 9f56c4df..e3858811 100644 --- a/stargazer/plugins/configuration/sgconfig/conn.h +++ b/stargazer/plugins/configuration/sgconfig/conn.h @@ -65,7 +65,7 @@ class Conn uint32_t IP() const { return *(uint32_t *)(&m_addr.sin_addr); } uint16_t Port() const { return ntohs(m_addr.sin_port); } - std::string endpoint() const { return inet_ntostring(IP()) + ":" + x2str(Port()); } + std::string endpoint() const { return inet_ntostring(IP()) + ":" + std::to_string(Port()); } bool Read();