summaryrefslogtreecommitdiff
path: root/src/session.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/session.hpp')
-rw-r--r--src/session.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/session.hpp b/src/session.hpp
index 8aee414..65bef68 100644
--- a/src/session.hpp
+++ b/src/session.hpp
@@ -23,7 +23,7 @@ class CSession {
};
const std::string &getName() const;
- const char *getIp() const;
+ const std::string &getIp() const;
void setSelf(std::pair<std::jthread, std::shared_ptr<CSession>> *self);
std::unique_ptr<SRecvData> read();
@@ -57,7 +57,7 @@ class CSession {
sockaddr_in m_addr;
socklen_t m_addrLen = sizeof(m_addr);
std::string m_name;
- char m_ip[INET_ADDRSTRLEN];
+ std::string m_ip;
int m_port;
bool m_isAdmin = false;