feat(remote): 增加远端控制台与日志汇总导出

This commit is contained in:
yml
2026-11-21 20:07:40 +08:00
parent 79b503d1a6
commit d176c421a8
27 changed files with 3486 additions and 19 deletions
@@ -22,6 +22,10 @@ func TestSharedProxyConfigRoundTripExcludesRuntimeProxy(t *testing.T) {
ProxyWhitelistReplace: true,
ProxyWhitelistPassword: "login-pass",
ProxyWhitelistSignKey: "0123456789abcdef",
RemoteEnabled: true,
RemoteURL: "https://control.example.com",
RemoteToken: "remote-token",
RemoteMachineName: "PC-01",
}
if err := SaveSharedProxyConfig(path, cfg); err != nil {
t.Fatal(err)
@@ -48,6 +52,10 @@ func TestSharedProxyConfigRoundTripExcludesRuntimeProxy(t *testing.T) {
if !local.ProxyEnabled || local.ProxyAPI != cfg.ProxyAPI || local.AccountsPerProxy != 5 {
t.Fatalf("unexpected merged config: %+v", local)
}
if !local.RemoteEnabled || local.RemoteURL != cfg.RemoteURL ||
local.RemoteToken != cfg.RemoteToken || local.RemoteMachineName != cfg.RemoteMachineName {
t.Fatalf("remote settings were not merged: %+v", local)
}
}
func TestApplySharedProxyConfigSupportsPartialOverrides(t *testing.T) {