web: reset links to the default mode, and keep CN agents dial-only by default [CI]
ci/woodpecker/push/web-build Pipeline was successful
ci/woodpecker/push/verify Pipeline was successful
ci/woodpecker/push/dev-image Pipeline was successful
ci/woodpecker/push/dev-backend-image Pipeline was successful

POST /api/admin/links/reset clears every manual link setting and turns automatic linking on. In the default rules a listening node in CN ranks below a listening node elsewhere, so the CN side dials; the links are pushed again when a node's country is first resolved or changes.
This commit is contained in:
justme committed 2026-10-21 16:35:58 +08:00
1 parent 35207a70ea
commit 7fe9775f97
8 files changed
+222 -15

No files matched your search

@@ -80,6 +80,8 @@ public sealed partial class AgentService
_gateway = gateway;
_planner = planner;
_settings = settings;
// 线路的默认方向看国家(国内的节点默认只拨出):国家查到或变了就重新下发
_nodes.OnCountryChanged = () => AfterAgentSetChangedAsync(CancellationToken.None);
}
public async ValueTask<IReadOnlyList<AgentView>> ListAsync(CancellationToken ct)