Commit Graph
1292 Commits
Author SHA1 Message Date
tsosunchia 7ff76cfbde Rewrite one-key installer for flavors and add smoke tests v1.6.2 2026-04-08 19:00:50 +08:00
tsosunchia fc0277a93f darwin: avoid promiscuous pcap for TCP and UDP sniffing 2026-04-08 18:05:21 +08:00
tsosunchia fb22c51350 Merge pull request #163 from nxtrace/codex/source-device-binding
Codex/source device binding
2026-04-07 22:36:30 +08:00
tsosunchia 5d8918c191 Add Linux test for non-syscall packet conn binding 2026-04-07 22:11:08 +08:00
tsosunchia 7c8c03fc07 Fix source config test for Windows CI 2026-04-07 22:02:54 +08:00
tsosunchia 212254d380 Prevent unsupported binds and invalid sniff handles 2026-04-07 21:56:13 +08:00
tsosunchia 864cdf920c Merge branch 'main' into codex/source-device-binding 2026-04-07 21:17:10 +08:00
tsosunchia 28d90ae267 Tighten regression cleanup and source device errors 2026-04-07 21:10:29 +08:00
tsosunchia 30fe4881a6 Remove Windows source-device runtime warnings 2026-04-07 19:47:50 +08:00
tsosunchia 4fb2ce8cda Fix regression scripts for routing-aware capture and IPv6 skips 2026-04-07 19:44:53 +08:00
tsosunchia fb926ad642 Fix regression script path handling on Unix and Windows 2026-04-07 18:45:54 +08:00
tsosunchia 0ca093b6aa Harden source-device handling and WinDivert regression checks 2026-04-07 18:27:09 +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 3b7894507c Merge pull request #161 from nxtrace/dependabot/go_modules/github.com/fatih/color-1.19.0
chore(deps): bump github.com/fatih/color from 1.18.0 to 1.19.0
2026-04-07 15:57:09 +08:00
tsosunchia 814ac75e69 Merge branch 'main' into dependabot/go_modules/github.com/fatih/color-1.19.0 2026-04-07 15:42:08 +08:00
tsosunchia 1d69f4577c Merge pull request #162 from nxtrace/dependabot/go_modules/github.com/mattn/go-runewidth-0.0.22
chore(deps): bump github.com/mattn/go-runewidth from 0.0.21 to 0.0.22
2026-04-07 15:41:56 +08:00
dependabot[bot] a359e14705 chore(deps): bump github.com/mattn/go-runewidth from 0.0.21 to 0.0.22
Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth) from 0.0.21 to 0.0.22.
- [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.21...v0.0.22)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-runewidth
  dependency-version: 0.0.22
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-06 14:43:57 +00:00
dependabot[bot] 37990c8a7c chore(deps): bump github.com/fatih/color from 1.18.0 to 1.19.0
Bumps [github.com/fatih/color](https://github.com/fatih/color) from 1.18.0 to 1.19.0.
- [Release notes](https://github.com/fatih/color/releases)
- [Commits](https://github.com/fatih/color/compare/v1.18.0...v1.19.0)

---
updated-dependencies:
- dependency-name: github.com/fatih/color
  dependency-version: 1.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-23 15:03:12 +00:00
tsosunchia e4e6c7d270 Catch WinDivert panics in the shared Windows open path 2026-03-22 12:58:59 +08:00
tsosunchia b513155647 Handle missing WinDivert runtime gracefully on Windows 2026-03-22 12:53:04 +08:00
tsosunchia 3c4b739dbc 在回归测试中添加对IPv6检查的跳过选项,以避免环境波动影响结果 2026-03-21 09:51:17 +08:00
tsosunchia a4efe60ea0 Add regression CI 2026-03-21 09:15:34 +08:00
tsosunchia 1cda0e53bb Fix context propagation and FastIP cache synchronization v1.6.1 2026-03-19 15:58:35 +08:00
tsosunchia 7c96e4ce76 Fix globalping stub signature for tiny and ntr builds 2026-03-19 15:17:53 +08:00
tsosunchia 2e4aa79eb6 Fix Windows MTU WinDivert timeout and filter handling 2026-03-19 15:13:00 +08:00
tsosunchia 7b8e68710c Fix cancellation handling across DNS, trace, and ws flows 2026-03-19 12:22:02 +08:00
tsosunchia 997918c3e1 fix: improve winDivertCapture close handling and cleanup logic 2026-03-19 11:48:57 +08:00
tsosunchia d05329276b Fix CLI, MTU, logging, and websocket regressions 2026-03-19 11:08:20 +08:00
tsosunchia 7f61abfee6 Fix websocket shutdown race and Darwin MTU fallback 2026-03-19 08:40:42 +08:00
tsosunchia 21396148d0 fix: improve Windows mtu handling and privilege prompts 2026-03-19 00:14:08 +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 825f34de4c Merge pull request #158 from nxtrace/dependabot/go_modules/github.com/rodaine/table-1.3.1
chore(deps): bump github.com/rodaine/table from 1.3.0 to 1.3.1
2026-03-17 22:46:30 +08:00
tsosunchia bb5d838832 Merge pull request #159 from nxtrace/dependabot/go_modules/golang.org/x/net-0.52.0
chore(deps): bump golang.org/x/net from 0.51.0 to 0.52.0
2026-03-17 22:21:09 +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 168e482ab9 fix: align mtu mode hop pmtu detection 2026-03-17 00:09:36 +08:00
tsosunchia 3c956068ee fix: make mtu probing follow hop pmtu updates 2026-03-16 23:51:16 +08:00
tsosunchia e448ad7320 fix: show hop-level pmtu updates in mtu mode 2026-03-16 23:37:22 +08:00
tsosunchia 4d967ba7aa feat: add standalone mtu trace mode 2026-03-16 23:10:06 +08:00
dependabot[bot] 1cc1fac527 chore(deps): bump golang.org/x/net from 0.51.0 to 0.52.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.51.0 to 0.52.0.
- [Commits](https://github.com/golang/net/compare/v0.51.0...v0.52.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.52.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-16 15:02:59 +00:00
dependabot[bot] 250b01b4a3 chore(deps): bump github.com/rodaine/table from 1.3.0 to 1.3.1
Bumps [github.com/rodaine/table](https://github.com/rodaine/table) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/rodaine/table/releases)
- [Commits](https://github.com/rodaine/table/compare/v1.3.0...v1.3.1)

---
updated-dependencies:
- dependency-name: github.com/rodaine/table
  dependency-version: 1.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-16 15:02:54 +00:00
tsosunchia 8806c3b24f fix: close stale ws client loops and clear init deadline 2026-03-16 21:43:06 +08:00
tsosunchia e38e24a8b7 Merge pull request #351 from nxtrace/main
SYNC
v1.5.2
2026-03-15 23:08:35 +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 d044c87441 rename AIAGENT rule file 2026-03-13 19:42:25 +08:00
tsosunchia 4f4cb0dc16 feat: enhance target port stripping and add tests for edge cases 2026-03-10 23:20:48 +08:00