tsosunchia
53cf214b52
Merge pull request #282 from nxtrace/codex/issue-409-dot-dns
...
支持自定义 DoT 和逐跳 PTR 解析
2026-12-01 15:27:33 +08:00
dependabot[bot]
605e22295e
build(deps): 升级 MCP Go SDK 至 1.9.0 ( #277 )
...
按 JSON 值比较 MCP structuredContent,保留数字精度。
2026-12-01 15:23:04 +08:00
tsosunchia
8a4fddc580
feat(dns): 支持自定义 DoT 和逐跳 PTR 解析
...
- 统一 CLI、Web API 和 MCP 的 DoT 地址校验,按探测隔离 PTR 缓存
- 默认使用系统解析目标域名,补齐文件目标和路由报告的 DNS 配置
2026-11-30 22:55:36 +08:00
tsosunchia
0c64ca5506
fix(deploy): 限制免 token 请求使用回环 Host
...
- 在公共中间件拒绝非回环 Host,覆盖 WebUI、REST、WebSocket 和 MCP
- 验证回环访问、token 鉴权和跨域预检行为,并更新部署说明
2026-11-21 15:41:20 +08:00
tsosunchia
ac5bb728fe
fix(timeout): 将 CLI 和服务默认超时统一为 3 秒
2026-11-14 21:40:39 +08:00
tsosunchia
47509c1e90
test(mcp): 对齐统计样本的丢包率与收发计数
2026-09-08 18:42:28 +08:00
tsosunchia
795d7de7aa
feat(mtr): 新增几何均值和抖动列及 Fields 编辑页
...
增加 Drop 和可重复的空格列,统一文本输出与回放间距;向 JSON report、回放及 MCP 输出新增统计字段,并覆盖零 RTT、迁移合并和终端交互。
2026-09-08 18:28:38 +08:00
tsosunchia
b56d4f72b5
fix(tos): 补强跨平台字段设置与策略路由选源 ( #236 )
...
保留完整 8 位 TOS 参数,传播初始化失败,修复 Linux 策略路由选源与 MTR socket 轮换,并为 Windows 非零 ICMPv4 TOS 使用 WinDivert。补齐三平台抓包、Linux 隔离路由验收及平台文档。
2026-09-08 10:19:50 +08:00
tsosunchia
9c9ecf9bb3
test(server): 显式忽略超时测试连接的清理错误
2026-09-05 20:33:44 +08:00
tsosunchia
525b7a51ae
fix(auth): 按客户端接受格式返回登录正文错误
2026-09-05 20:33:44 +08:00
tsosunchia
b494a90a24
fix(server): 设置 HTTP 读取和空闲连接超时
2026-09-05 20:17:50 +08:00
tsosunchia
b9138080fb
fix(auth): 将登录请求正文限制为 8 KiB
2026-09-05 20:17:50 +08:00
tsosunchia
d7a68e57c1
fix(deploy): 在初始化前限制 MCP 与 Web 探测参数
2026-09-05 20:17:50 +08:00
tsosunchia
5740bcd734
fix(web): 显示成功探测的零 RTT 延迟
2026-09-05 19:25:38 +08:00
tsosunchia
ae8ba80aa2
fix(mtr): 接受零 RTT 回包并计入统计与输出
2026-09-05 19:11:26 +08:00
tsosunchia
8cb5929ede
fix(bench): 校验 PGO 工具链并修正吞吐统计
...
- 固定并校验 Go 1.27.1,补充可移植 SHA-256 计算\n- 计入 WebSocket envelope 与 TCP packet 字节数\n- 明确 fake Geo provider 直连并固定二进制 JSON 后端
2026-09-05 16:25:16 +08:00
tsosunchia
edfc38cdf6
test(bench): 建立可复现的 PGO 综合工作负载
2026-09-05 15:50:46 +08:00
tsosunchia
49c438112e
fix(test): 锁定 MCP structuredContent 原始字节
...
- 从实际 Streamable HTTP 响应保留 structuredContent 的 json.RawMessage
- 交叉校验 wire 数据与 SDK 解码结果
- 在发布产物复现命令中显式启用 nojsonv2
2026-09-05 14:47:50 +08:00
tsosunchia
12f614e082
fix(test): 固定 JSON 合同的跨平台验证环境
...
- 固定 JSONL golden 使用 LF,避免 Windows checkout 改写字节合同
- 限制启动与 RSS 测量脚本只在 macOS 执行
- 在 REST 合同测试创建 Gin context 前启用测试模式
2026-09-05 14:30:07 +08:00
tsosunchia
d70a8665e0
test(json): 锁定 REST WebSocket MTR 与 MCP 输出合同
2026-09-05 13:50:52 +08:00
tsosunchia
825ca99f88
test(fuzz): 覆盖核心协议与输入解析器
2026-09-05 12:17:28 +08:00
tsosunchia
9ba52ea12d
fix(server): 隔离 WebSocket trace worker panic
...
- 在 trace worker 边界将 panic 转为单次 1011 会话终止
- 补充确定性回归测试并修正文档中的 Gorilla 写入归属
2026-09-05 08:19:09 +08:00
tsosunchia
c098446193
test(server): 锁定 WebSocket 会话终止与首帧边界
2026-09-05 07:25:18 +08:00
tsosunchia
6aa983f25f
refactor(server): 统一 deploy WebSocket 会话生命周期
2026-09-05 07:25:02 +08:00
tsosunchia
c865f0c436
perf(geo): 限制共享缓存并隔离查询
2026-09-05 00:49:54 +08:00
tsosunchia
17e6a6c235
perf(server): 避免重复初始化 DN42 配置
2026-09-04 22:25:36 +08:00
tsosunchia
58f47c6773
perf(dn42): 索引 GeoFeed 最长前缀查询
...
- 以不可变 IPv4/IPv6 prefix map 发布可刷新快照
- 固定各执行会话的 GeoFeed generation 并在 MTR reset 时刷新
- 保留旧接口并覆盖 CLI、Web、service、nali、MTU 与 FastTrace 入口
2026-09-04 21:18:17 +08:00
tsosunchia
2cab379924
test(bench): 建立 geo mtr websocket 性能与输出基线
2026-09-04 11:43:21 +08:00
tsosunchia
043a667796
fix(web): 将 MTR 终止标记放在主机信息旁
2026-08-14 21:20:39 +08:00
tsosunchia
9e7304992f
fix(server): 避免 v4 请求初始化 v3 连接
2026-08-14 21:10:28 +08:00
tsosunchia
9465829d0b
fix(api): 修复帮助文案与测试环境隔离
...
- 明确 MTR API 信息仅在元数据可用时显示,并补全 IPDB.One\n- 修正 data provider 帮助文本拼写及双语快照\n- 隔离 WebSocket 兼容测试中的环境 provider 全局值
2026-08-14 19:49:32 +08:00
tsosunchia
df516310ec
refactor(api): 统一官方 API 命名与 provider 规范值
...
- 将公共 data_provider 统一为 NextTrace-API,并保留旧别名输入兼容
- 按 v3/v4 语义重命名内部实现并保留 Deprecated Go 包装
- 同步 CLI、Web、MCP、文档及输出规范化测试
2026-08-14 19:37:55 +08:00
tsosunchia
20ad874194
fix(trace): 保留终止 marker 并按语义维护 MTR 边界
...
- 分离人类响应与机器 marker,并聚合有界 MTR 终止证据
- 保留 TUI/report 截断后的 marker,区分终端样式与文件纯文本
- 明确输出优先级并补齐 CLI、Fast、Web 回归测试与文档
2026-08-13 12:21:37 +08:00
tsosunchia
bf8475df71
fix(output): 跨 Trace 入口透传终止原因
2026-08-13 11:25:52 +08:00
tsosunchia
11f6b48fa7
fix(mcp): 修复 PR review 反馈
...
- 为 stdin reader 使用 per-request response,避免并发调用串线
- 统一 Fast Trace IPv4/IPv6 非取消错误处理,移除 log.Fatal 分支
- 加固 deploy auth cookie 与 MCP session 测试 helper
- 显式断言 MTR MCP capability 工具存在
2026-05-01 08:05:22 +08:00
tsosunchia
bf6717f2e6
test(mcp): 补全 NextTrace 工具调用覆盖
2026-04-29 22:42:13 +08:00
tsosunchia
999817e88f
fix(deploy): harden MCP auth and Globalping defaults
...
- 为 HTTPS/反代场景设置 deploy 登录 cookie Secure
- 补齐 MCP DELETE CORS 和 Globalping TCP/UDP 默认端口
- 同步 NextTrace Skill 工具矩阵和平台说明
2026-04-29 13:23:24 +08:00
tsosunchia
1c8155a502
feat: add deploy MCP auth
2026-04-29 12:01:04 +08:00
tsosunchia
844d3c1742
Harden regression scripts and preserve WinDivert errors
2026-04-08 22:31:38 +08:00
tsosunchia
49b0144cca
Fix deploy listener race and ICMP source-device gating
...
- let deploy mode bind the listener before printing the Web UI address and report the actual bound endpoint when :0 is used
- switch Unix and Windows regression deploy checks to parse the real base URL from deploy logs instead of preallocating a port in the script
- add Unix deploy cleanup traps and make runner scripts temporary/self-cleaning
- gate ICMP source-device propagation to Linux and macOS so unsupported Unix targets keep --dev as source-address selection only
- add server and trace regression tests for the new listener and source-device behavior
2026-04-08 21:59:21 +08:00
tsosunchia
0ddac64b7a
Fix source-device normalization and deploy smoke tests
2026-04-08 20:46:33 +08:00
tsosunchia
2a5717aedf
Fix explicit source/device handling across platforms
...
Keep the default traceroute path unchanged when neither --source nor --dev is set so existing source address selection, socket setup, and logging stay untouched.
Add a shared explicit source/device normalization helper and route the CLI traceroute path, standalone --mtu path, fast_trace, and server trace requests through it. The helper keeps --source higher priority than --dev, resolves device-derived source addresses by destination family, rejects devices without a usable address, and emits at most one runtime warning.
On macOS, bind TCP and UDP send sockets to the requested interface with IP_BOUND_IF/IPV6_BOUND_IF so explicit --dev survives utun default routes. On Linux, bind ICMP/TCP/UDP send sockets with SO_BINDTODEVICE only when a source device is explicitly configured.
On Windows, keep the existing no-rewrite constraint for real device binding. Explicit --dev now resolves a source address, clears SourceDevice before the tracer is built, and surfaces a single warning that actual egress still follows system routing.
Update CLI help text and README platform notes to document the supported --dev semantics, and add unit tests that cover no-op behavior without explicit overrides, --source priority, device family resolution, mismatch errors, and the Windows downgrade warning.
2026-04-07 17:00:53 +08:00
tsosunchia
1cda0e53bb
Fix context propagation and FastIP cache synchronization
2026-03-19 15:58:35 +08:00
tsosunchia
7b8e68710c
Fix cancellation handling across DNS, trace, and ws flows
2026-03-19 12:22:02 +08:00
tsosunchia
d05329276b
Fix CLI, MTU, logging, and websocket regressions
2026-03-19 11:08:20 +08:00
tsosunchia
cff34d401e
feat: update probe packet size handling and defaults across CLI and server
2026-03-17 22:11:13 +08:00
tsosunchia
d9dbcc2a38
feat: align psize semantics and add tos
2026-03-17 16:41:10 +08:00
tsosunchia
8806c3b24f
fix: close stale ws client loops and clear init deadline
2026-03-16 21:43:06 +08:00
tsosunchia
fe8f1aea75
feat: refactor flag registration functions and enhance trace map URL handling
2026-03-13 20:49:38 +08:00
tsosunchia
4f4cb0dc16
feat: enhance target port stripping and add tests for edge cases
2026-03-10 23:20:48 +08:00