From f3ff5fdb03ccf79e8670e876039853189dce80a1 Mon Sep 17 00:00:00 2001 From: yuanyuanxiang <962914132@qq.com> Date: Sun, 28 Dec 2025 20:38:24 +0100 Subject: [PATCH] Fix: Exist-check include checking client IP in `AddList` --- server/2015Remote/2015RemoteDlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/2015Remote/2015RemoteDlg.cpp b/server/2015Remote/2015RemoteDlg.cpp index a402c10..429d409 100644 --- a/server/2015Remote/2015RemoteDlg.cpp +++ b/server/2015Remote/2015RemoteDlg.cpp @@ -823,7 +823,7 @@ VOID CMy2015RemoteDlg::AddList(CString strIP, CString strAddr, CString strPCName Mprintf("上线消息 - 主机已经存在 [1]: same context. IP= %s\n", data[ONLINELIST_IP]); return; } - if (ctx->GetClientID() == id) { + if (ctx->GetClientID() == id && !ctx->GetClientData(ONLINELIST_IP).IsEmpty()) { LeaveCriticalSection(&m_cs); Mprintf("上线消息 - 主机已经存在 [2]: %llu. IP= %s. Path= %s\n", id, data[ONLINELIST_IP], path); return;