Fix: GetPort issue causing not show host offline log

This commit is contained in:
shaun
2026-01-21 17:33:51 +01:00
parent 43e752cf9c
commit 6a1e0810ab
2 changed files with 15 additions and 8 deletions

View File

@@ -527,7 +527,10 @@ public:
}
virtual int GetPort() const
{
return sClientSocket;
// 第一次返回套接字,后续返回地址栏端口号
if (sClientInfo[ONLINELIST_ADDR].IsEmpty())
return sClientSocket;
return atoi(sClientInfo[ONLINELIST_ADDR]);
}
CString GetClientData(int index) const override
{