mirror of
https://gitcode.com/JianFeeeee/webui4frpc.git
synced 2026-10-03 15:43:59 +00:00
fix: 首页本地服务只显示 localOnly 转发, 集群转发不再误报为本地服务
- handleStatus 的 localStatuses 遍历所有 locals 时跳过非 localOnly, 集群转发只出现在活跃转发卡区 (per-remote 时代的残留逻辑) - gofmt 格式化 topoKey 定义 - 同步 dist (含 ⚙/⊕ emoji 变体选择器修复)
This commit is contained in:
@ -758,6 +758,15 @@ func (e *Engine) CreateCluster() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// ResetTopology clears all established topology entries (pending tasks are
|
||||
// kept). Used by the leader's startup reconcile: the recovered topology
|
||||
// records forwards whose worker processes died with the restart, and HasTask
|
||||
// would short-circuit re-submission — so the leader wipes topology first,
|
||||
// then re-submits every forward to ride the token fresh.
|
||||
func (e *Engine) ResetTopology() {
|
||||
e.state.Topology = map[string]*TopoEntry{}
|
||||
}
|
||||
|
||||
// SubmitTask adds a new forward request to pending; it rides the next token
|
||||
// round and is claimed by the lowest-load member.
|
||||
// RemoveNode publishes a node-removal command via the token; the target
|
||||
|
||||
Reference in New Issue
Block a user