Commit Graph
29 Commits
Author SHA1 Message Date
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
EveCat 1c065129d3 fix(trace): classify probe responses before stopping
Use ICMP response semantics instead of source-address equality to detect transit, destination, and unreachable replies.

Keep tracing when any ECMP path returns a transit response, expose structured stop reasons, and preserve raw and JSON output behavior.
2026-08-12 17:11:34 +08:00
tsosunchia 9c73c9d983 fix(fast-trace): 修正 runtime prepared 判定 2026-06-10 16:39:48 +08:00
tsosunchia 2a8467b0c1 fix(fast-trace): 复用 v4 token runtime 初始化 2026-06-10 16:06:33 +08:00
tsosunchia b58fa4b0f6 fix(api-v4): 保留预热失败与代理场景的回退路径 2026-05-25 18:02:36 +08:00
tsosunchia 8b81f0365f Add FastIP-aware NextTrace API v4 HTTP path 2026-05-22 17:32:10 +08:00
tsosunchia f619e7b660 refactor(api): 统一 NextTrace API v4 命名
- 将抽象 API v4 文件和符号改为 NextTrace API v4
- 同步 CLI flag、文档和测试命名
2026-05-22 11:16:54 +08:00
tsosunchia 97bcf79f8d feat(ipgeo): 添加 NextTrace API v4 HTTP GeoIP provider
- 仅在 NEXTTRACE_API_V4_TOKEN 存在时接管 LeoMoeAPI
- 保留未配置 v4 token 时的 v3 WebSocket 默认路径
2026-05-22 11:16:54 +08:00
tsosunchia d678ac8f12 fix(mcp): 完善 deadline 取消处理
- 将 wshandle 日志抑制 helper 扩展到 DeadlineExceeded 和已结束 base context
- 让 lookupTargetIPOrExit 对 DeadlineExceeded 返回正常停止
- 补充 cmd 与 wshandle 的 deadline 取消测试
2026-05-01 08:34:58 +08:00
tsosunchia fc0d9af40f fix(nexttrace): stop cancel-triggered retry loops 2026-04-30 14:49:22 +08:00
tsosunchia 78760ef852 fix(deploy): print routable MCP endpoint
- 优先使用 listen access 地址打印 MCP Endpoint

- 避免 wildcard 监听时输出 0.0.0.0/:: 作为客户端地址
2026-04-29 14:01:53 +08:00
tsosunchia 1c8155a502 feat: add deploy MCP auth 2026-04-29 12:01:04 +08:00
tsosunchia c8bf784f14 feat(nali): add full-build IP annotation mode 2026-04-19 10:19:06 +08:00
tsosunchia b513155647 Handle missing WinDivert runtime gracefully on Windows 2026-03-22 12:53:04 +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 e060c33777 feat: Enhance traceroute output handling and add tests
- Added support for output path and default output flag in traceroute commands.
- Implemented output path resolution logic with conflict checks.
- Updated globalping and MTR modes to handle new output options.
- Enhanced MTU mode with styled output and improved result printing.
- Refactored table printer to support clear screen option and added tests for table output.
- Introduced new logging functions in tracelog for better file handling and real-time output.
- Added comprehensive tests for new features and existing functionalities.
2026-03-18 22:49:22 +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 6eec12e78c fix: accept negative psize CLI values 2026-03-17 21:44:41 +08:00
tsosunchia d9dbcc2a38 feat: align psize semantics and add tos 2026-03-17 16:41:10 +08:00
tsosunchia 0b0c6662e8 修复 MTR 调度 goroutine 泄漏 2026-03-15 22:11:44 +08:00
tsosunchia fe8f1aea75 feat: refactor flag registration functions and enhance trace map URL handling 2026-03-13 20:49:38 +08:00
tsosunchia aa3df62875 Add tests for DN42 and PTR record functionalities
- Added focused unit tests for listener parsing helpers so buildListenInfo and isDigitsOnly are now validated without invoking the full CLI stack (cmd/listen_info_test.go:10-32).
  - Replaced placeholder DN42 tests with deterministic coverage for geofeed parsing and PTR matching, using temp CSV fixtures to check both positive and negative paths (dn42/geofeed_test.go:13-57, dn42/ptr_test.go:13-56).
  - Rebuilt the ipgeo tests to assert provider lookup mappings, DN42 integration (including PTR fallback and “unknown” defaults), and the disableGeoIP shim (ipgeo/ipgeo_test.go:12-53, ipgeo/dn42_test.go:14-78).
  - Introduced environment helper tests that exercise trimming, boolean, default, and integer reads without touching external DNS (util/env_test.go:9-46).
  - Removed legacy network-dependent tests that only printed output, ensuring the suite is deterministic.
2025-10-29 13:27:37 +08:00
Yunlq ffd67a1d2d 优化了低Query场景下高丢包跳的输出 2025-08-10 23:27:50 +08:00
tsosunchia 1580c6111f add mpls func 2023-10-06 21:03:38 +08:00
tsosunchia 580612ce08 refactor: preparatory work 2023-06-26 14:49:05 +08:00
Leo cdec6cbd8d feat: refactor flag 2023-01-17 19:08:32 +08:00