Commit Graph
276 Commits
Author SHA1 Message Date
tsosunchia b771e8d758 build(go): 升级 Go 1.27.1 并提高 Darwin 最低版本
- 固定 benchstat 并增加默认 JSON/nojsonv2、race 与三 flavor 门禁
- 将正式构建锁定为 nojsonv2,校验 macOS 13.0 LC_BUILD_VERSION
- 归档 Linux 参考 benchmark、profile、测试耗时与二进制证据
2026-09-04 11:43:21 +08:00
tsosunchia 10ac255a2b docs(api): 明确 provider 输入与规范回显
- CLI help 使用 selector 实际接受的 ipdb.one 与 chunzhen 值\n- MCP skill 限定 NextTrace-API 规范回显适用于官方 API 及旧别名
2026-08-14 19:58:51 +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
Dessalines39394 07fbb2deff docs(readme): 修正 Star History 图表链接参数
修复 Star History 图表失效问题后,补全包装链接中缺失的 type 参数,使其指向 https://star-history.dera.page/#nxtrace/NTrace-core&type=Date,确保图表与跳转链接均能正常渲染。
2026-08-14 09:55:40 +00:00
OctoBored d059806ddf docs(readme): 修复失效的 Star History 图表
当前的 Star History 图表因 GitHub stargazer API 限制而失效。切换到使用同一域名托管、无需 API token 的替代数据源,确保图表能正常渲染。

(cherry picked from commit 5d016fcc63)
2026-08-14 11:44:11 +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 734f694cd6 docs(build): 同步 Go 1.26.5 编译要求 2026-08-03 02:37:30 +08:00
tsosunchia c656aa101d docs(readme): 补充独立 DNS 客户端说明 2026-07-29 23:06:11 +08:00
tsosunchia 0bcc54955d docs(build): 补充 macOS cgo 与 libpcap 编译要求 2026-07-27 10:53:34 +08:00
tsosunchia 6ccdd31fc4 fix(ci): 收紧 lint workflow 凭证并统一徽章样式 2026-07-15 13:00:26 +08:00
tsosunchia 16502d3e9c docs(readme): 切换 lint 状态徽标到 GitHub Actions 2026-07-15 11:42:58 +08:00
tsosunchia de6ef7d5db docs: update NextTrace Web repository link in README 2026-06-16 10:26:53 +08:00
tsosunchia b45a12bd8e docs: update README files to reflect GlobalTrace project details and NextTrace Web implementation 2026-06-16 10:14:25 +08:00
tsosunchia 618bd13579 fix(util): 读取 latest fallback v4 token 文件
- 额外写入 latest token 文件作为不同进程树 fallback
- 读取 session token 失败或缺失时尝试 latest token
2026-05-22 11:16:54 +08:00
tsosunchia 564d97b2c2 feat(util): 用临时文件保存 session v4 token
- 将 -x 从父进程 env 写入脚本调整为 session token 文件
- 启动时从 session token 文件加载 NEXTTRACE_API_V4_TOKEN
2026-05-22 11:16:54 +08:00
tsosunchia 489e31bacf fix(cmd): 允许 -x 直接读取 NextTrace API v4 token
- 在 setup 流程中从 stdin/TTY 读取 token
- 保持 stdout/stderr 分离并避免回显 token
2026-05-22 11:16:54 +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 7ce9cb74e6 feat(cmd): 输出 session-only v4 token setup 脚本
- 为 -x 生成 eval/iex 可执行的当前 shell token 设置脚本
- stdout 为终端时避免直接打印 token-bearing 语句
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 0b5ca7b409 fix(printer): 修正 MTR history 取样与配色 2026-05-20 22:24:21 +08:00
tsosunchia 9fc8c49162 feat(mtr): 添加可切换历史视图
- 新增 MTR probe history store 与 TUI history/chart 模式
- 增加 d/g 快捷键、OnProbe 事件和相关测试
- 更新中英文 README 并致谢 TraceBar
2026-05-20 21:56:22 +08:00
tsosunchia 7cc001244b ci(homebrew): 改为每周同步 Core Formula 2026-05-12 19:21:57 +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 414297c568 docs(readme): 补充 MCP 客户端注册说明 2026-04-29 18:30:22 +08:00
tsosunchia 1c8155a502 feat: add deploy MCP auth 2026-04-29 12:01:04 +08:00
tsosunchia e66e2663f6 Restore Windows --dev source selection
Keep Windows --dev usable by resolving the selected device to a source IP and clearing SourceDevice before the tracer reaches Windows send paths. Update docs and project notes to describe that Windows routing may still choose the actual egress interface.
2026-04-20 09:06:53 +08:00
tsosunchia c8bf784f14 feat(nali): add full-build IP annotation mode 2026-04-19 10:19:06 +08:00
tsosunchia 407ed64574 address speed mode review feedback 2026-04-18 19:11:13 +08:00
tsosunchia 756508006d add nexttrace speed mode 2026-04-18 18:23:49 +08:00
tsosunchia 6e6aea2c59 Clarify APT package selection in README 2026-04-10 14:02:48 +08:00
tsosunchia 89e382f55b Refine README flavor install wording 2026-04-10 13:55:46 +08:00
tsosunchia d44f841e97 Fix README APT source snippets for Markdown rendering 2026-04-10 13:51:48 +08:00
tsosunchia 6bf0498604 Fix APT README setup commands for deb822 and keyrings 2026-04-10 13:49:56 +08:00
tsosunchia 20d164dbe7 更新 README 和 README_zh_CN 文件,添加 Debian/Ubuntu 的自动安装说明及相关命令 2026-04-10 13:40:37 +08:00
tsosunchia 0ddac64b7a Fix source-device normalization and deploy smoke tests 2026-04-08 20:46:33 +08:00
tsosunchia 7ff76cfbde Rewrite one-key installer for flavors and add smoke tests 2026-04-08 19:00:50 +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 b513155647 Handle missing WinDivert runtime gracefully on Windows 2026-03-22 12:53:04 +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 976156ba91 fix: restore windows icmpv6 tos handling 2026-03-17 23:12:15 +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 f6816f9592 feat: add standalone mtu mode metadata and flavor gating 2026-03-17 11:33:36 +08:00
tsosunchia 0b0c6662e8 修复 MTR 调度 goroutine 泄漏 2026-03-15 22:11:44 +08:00
tsosunchia 27a84fa5b5 feat: add environment variable documentation and implement CORS middleware for browser access 2026-03-08 08:17:13 +08:00
tsosunchia 20c197b66b rename NTrace-dev 2026-03-07 16:56:29 +08:00
tsosunchia 9eff7aabf4 feat: introduce build variants for NextTrace with flavor options
- Added three build flavors: `nexttrace` (full), `nexttrace-tiny`, and `ntr` (MTR-focused).
- Updated README.md and README_zh_CN.md to reflect new build variants and their features.
- Implemented manual build instructions for each flavor.
- Enhanced command-line argument parsing to accommodate flavor-specific options.
- Disabled WebUI and Globalping features in `nexttrace-tiny` and `ntr` flavors.
- Created separate files for handling Globalping and WebUI functionality based on build flavor.
- Added error handling for unavailable features in non-full builds.
2026-03-05 22:05:38 +08:00