Fix: Avoid sending authorization information to trail SN

This commit is contained in:
yuanyuanxiang committed 2026-05-24 23:03:58 +02:00
1 parent 92bf9c9ccb
commit 54c88539e5
3 files changed
+7 -3

No files matched your search

+5 -1
View File
@@ -1583,7 +1583,7 @@ LRESULT CMy2015RemoteDlg::OnTrialWanIpAbuse(WPARAM wParam, LPARAM lParam)
{
CString* ip = (CString*)wParam;
CString detail;
detail.FormatL("入站公网 IP=%s (Proxy Protocol 真实 IP 或 raw TCP 对端)",
detail.FormatL("入站公网 IP: %s (Proxy Protocol 真实 IP 或 raw TCP 对端)",
ip ? (LPCTSTR)*ip : _T("?"));
ShowMessage(_TR("入站告警"), detail);
@@ -5594,6 +5594,10 @@ VOID CMy2015RemoteDlg::MessageHandle(CONTEXT_OBJECT* ContextObject)
memcpy(devId, fixedKey.c_str(), fixedKey.length());
devId[fixedKey.length()] = 0;
Mprintf("Request AUTH: SN= %s, Password= %s\n", deviceID.c_str(), fixedKey.c_str());
if (*days && deviceID == "12ca-17b4-9af2-2894") {
Mprintf("Unable to authorize trail SN: %s, days: %d\n", ContextObject->GetPeerName().c_str(), int(*days));
break;
}
// 检查该设备原授权是 V1 还是 V2
std::string origPasscode, origHmac, origRemark;