Fix: keep the local FRP address and align the MCP read-only preset
A subordinate that already runs its own FRP proxy must keep advertising its own master address: the upstream auto FRP is only a fallback entry and should not overwrite the address baked into generated clients and kernel payloads. GetEffectiveMasterAddress now returns the local address when [frp] UseFrp is on and a master address is configured; otherwise the upstream address is used exactly as before. The startup banner, the hot switch tips and the settings dialog follow the same rule, and the dialog now explains under the field when the address is supplied by the upstream FRP. The MCP settings dialog's read-only preset now unchecks every other tool switch (file transfer, host management, chat, keylog), matching the smart preset and the first-open state; previously Smart followed by Read-only left those four checked. The FRP auto-proxy messages now go through _TRF and the three language files carry the new local-FRP variants and the upstream-address hint. Verified: build.cmd server passes; the default (no local FRP) path is unchanged. Co-Authored-By: deepseek-flash
This commit is contained in:
1 parent
a6c417a061
commit
b0e172bf91
7 files changed
+58
-8
No files matched your search
@@ -573,6 +573,8 @@ public:
|
||||
// 获取有效的主控地址(优先使用上级FRP配置)
|
||||
// 返回值:是否使用了FRP地址
|
||||
static bool GetEffectiveMasterAddress(std::string& outIP, int& outPort, bool heartbeat=false);
|
||||
// 本地是否已启用自有 FRP(UseFrp + 主控地址;仅 64 位主控)
|
||||
static bool IsLocalFrpEnabled();
|
||||
void StartFrpcAuto(const FrpAutoConfig& cfg);
|
||||
void StopFrpcAuto();
|
||||
void InitFrpcAuto(); // 启动时自动恢复
|
||||
|
||||
Reference in new issue
Block a user