From 54c88539e54f470bcb9c9960eaec3f2dbeb2afe0 Mon Sep 17 00:00:00 2001 From: yuanyuanxiang <962914132@qq.com> Date: Sun, 24 May 2026 22:37:17 +0200 Subject: [PATCH] Fix: Avoid sending authorization information to trail SN --- server/2015Remote/2015RemoteDlg.cpp | 6 +++++- server/2015Remote/lang/en_US.ini | 2 +- server/2015Remote/lang/zh_TW.ini | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/server/2015Remote/2015RemoteDlg.cpp b/server/2015Remote/2015RemoteDlg.cpp index b8ab523..234e6d5 100644 --- a/server/2015Remote/2015RemoteDlg.cpp +++ b/server/2015Remote/2015RemoteDlg.cpp @@ -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; diff --git a/server/2015Remote/lang/en_US.ini b/server/2015Remote/lang/en_US.ini index 9a210c5..cb51109 100644 --- a/server/2015Remote/lang/en_US.ini +++ b/server/2015Remote/lang/en_US.ini @@ -1851,7 +1851,7 @@ IOCP վ澯=Inbound Alert 澯=Anti-Proxy Alert ð LAN-only =Trial Version - LAN Only Restriction -վ IP=%s Proxy Protocol ʵ IP raw TCP Զˣ=Inbound public IP=%s (resolved via Proxy Protocol v2 real IP or raw TCP peer) +վ IP: %s Proxy Protocol ʵ IP raw TCP Զˣ=Inbound public IP=%s (resolved via Proxy Protocol v2 real IP or raw TCP peer) ⵽վԹ IP%s\r\n\r\nð LAN ãʹΥȨ\r\nԶأзʽȨ\r\n\r\nϸ¼Ϣб־=Inbound connection from public IP: %s\r\n\r\nTrial version is restricted to LAN-only usage; cross-network use violates the license terms.\r\nFor cross-network remote control, please obtain a commercial license from the publisher.\r\n\r\nSee the message list and runtime log for full details. ⵽ӣں RTT λ %d msֵ %d ms\r\n\r\nƫߵ RTT ʾӿܾɴ / VPN / ת\r\nð LAN ãʹΥȨ\r\n\r\nԶأзʽȨ\r\nϸ¼Ϣб־=Suspicious connection detected: kernel-measured RTT median %d ms exceeds the threshold of %d ms.\r\n\r\nA persistently elevated RTT suggests the connection is being relayed through a proxy / VPN / tunnel.\r\nTrial version is restricted to LAN-only usage; cross-network use violates the license terms.\r\n\r\nFor cross-network remote control, please obtain a commercial license from the publisher.\r\nSee the message list and runtime log for full details. ; Auto FRP / Upper-FRP Hot-Swap - English Translation diff --git a/server/2015Remote/lang/zh_TW.ini b/server/2015Remote/lang/zh_TW.ini index 2e8ef97..fde88df 100644 --- a/server/2015Remote/lang/zh_TW.ini +++ b/server/2015Remote/lang/zh_TW.ini @@ -1842,7 +1842,7 @@ IOCP վ澯=վ澯 澯=澯 ð LAN-only =ԇð LAN-only -վ IP=%s Proxy Protocol ʵ IP raw TCP Զˣ=վW IP=%s Proxy Protocol 挍 IP raw TCP ˣ +վ IP: %s Proxy Protocol ʵ IP raw TCP Զˣ=վW IP=%s Proxy Protocol 挍 IP raw TCP ˣ ⵽վԹ IP%s\r\n\r\nð LAN ãʹΥȨ\r\nԶأзʽȨ\r\n\r\nϸ¼Ϣб־=zyվBԹW IP%s\r\n\r\nԇðH LAN ãWʹÌ`ڙl\r\nWhأՈlзՈʽڙࡣ\r\n\r\nԔӛՈҊӍϢбcI ⵽ӣں RTT λ %d msֵ %d ms\r\n\r\nƫߵ RTT ʾӿܾɴ / VPN / ת\r\nð LAN ãʹΥȨ\r\n\r\nԶأзʽȨ\r\nϸ¼Ϣб־=zyB RTT λ %d msֵ %d ms\r\n\r\nmƫߵ RTT ʾԓBܽɴ / VPN / D\r\nԇðH LAN ãWʹÌ`ڙl\r\n\r\nWhأՈlзՈʽڙࡣ\r\nԔӛՈҊӍϢбcI ; Auto FRP / Upper-FRP Hot-Swap - Traditional Chinese Translation