Repository navigation
fix: 重装命令不再把上报间隔改回 1 秒;节点地址改由 hub 挑选 - #60
Merged
Merged
Conversation
stqfdyr
force-pushed
the
fix/node-view-derived
branch
from
September 24, 2026 13:50
ab18ba2 to
7469376
Compare
stqfdyr
force-pushed
the
fix/node-view-derived
branch
2 times, most recently
from
September 24, 2026 14:04
7469376 to
f92adb5
Compare
- 单节点安装弹窗与批量弹窗一致,间隔改过才带 --interval - hub 从上报节奏读出当前间隔,弹窗预填并显示 - 显示哪个地址由 hub 的 api::addresses 挑选,面板只渲染;删除面板里的 isPublic 与 addresses
- ipv4_auto / ipv6_auto 只清空本族的手填地址,另一族照旧,与编辑框留空后实际显示的一致 - 公开视图的泄露测试补上 ipv6_auto
stqfdyr
force-pushed
the
fix/node-view-derived
branch
from
September 24, 2026 14:07
f92adb5 to
62cc91c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
叠在 #59 上,合入 #59 后改基到 main。
上报间隔
单节点安装弹窗生成的命令总带
--interval,没动过就是--interval 1:拿它重装一台调过间隔的机器,间隔会被悄悄改回 1 秒。install.sh沿用机器上原有的,新装为 1 秒interval;单节点弹窗以它预填,并在提示下方显示「当前:N 秒」,与「指定统计的网卡」的「当前」一行同样式节点地址
面板显示哪个地址原先由
api.ts的isPublic+addresses在浏览器里挑,公网网段名单因此在 agent、hub、面板三处各一份。api::addresses,规则不变,复用 hub 已有的agent_ws::publicaddresses(地址与来源)和ipv4_auto/ipv6_auto(清掉本族手填、另一族保留时该族显示的地址,编辑框的占位用),面板只渲染isPublic、addresses及其 TS 测试,用例原样移到 Rust;另补一条:报在另一族字段里的地址不算该族的测试
cargo fmt --check、cargo clippy --all-targets、cargo test(124 个);tsc -b、oxlint、npm test通过--interval 2)弹窗预填 2、提示「当前:2 秒」、命令不带--interval;改成 5 带上--interval 5,改回 2 仍带;节点列表网卡地址与手动地址的悬停来源正确;编辑框占位「自动:<地址>」与「自动:无」正确;控制台无报错