tsosunchia
83d906bb31
refactor(runtime): 采用 Go 1.27 标准库并发与集合接口
2026-09-04 15:21:58 +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
fc0d9af40f
fix(nexttrace): stop cancel-triggered retry loops
2026-04-30 14:49:22 +08:00
tsosunchia
0ddac64b7a
Fix source-device normalization and deploy smoke tests
2026-04-08 20:46:33 +08:00
tsosunchia
7b8e68710c
Fix cancellation handling across DNS, trace, and ws flows
2026-03-19 12:22:02 +08:00
tsosunchia
81797d4b5f
Improve gocyclo complexity
2026-03-08 10:54:41 +08:00
tsosunchia
efb437fbac
fix: improve error handling and logging across multiple packages
...
- Enhanced error handling in `mtr_ui.go` to log warnings when raw mode cannot be enabled.
- Updated `geofeed.go` to return a more informative error instead of panicking when geofeed data cannot be loaded.
- Refined error handling in `ptr.go` to return an error if `ptrPath` is not configured.
- Improved error handling in `fast_trace.go` for network interface address retrieval.
- Added error checks in `chunzhen.go` and `ipapicom.go` for HTTP request creation and response reading.
- Enhanced error handling in `ipdbone.go` to return descriptive errors for authentication failures.
- Updated `ipfilter.go` to ensure proper IP parsing before filtering.
- Improved error handling in `ipinfoLocal.go` for database access and record parsing.
- Enhanced error handling in `ipsb.go` for HTTP request creation and response reading.
- Added checks for closed channels in `leo.go` to prevent panics.
- Improved panic recovery in `ws_handler.go` to log errors in the write loop.
- Added read deadline to WebSocket connections in `ws_handler.go` to prevent blocking.
- Enhanced configuration checks in `globalping.go` to avoid nil pointer dereferences.
- Improved error logging in `icmp_ipv4.go` and `icmp_ipv6.go` for send errors.
- Enhanced error handling in `icmp_darwin.go`, `icmp_unix.go`, and `icmp_windows.go` for checksum setting.
- Improved error handling in TCP and UDP implementations across various platforms for checksum settings.
- Enhanced error handling in `tracemap.go` for proxy configuration.
- Improved type assertions in `util.go` for DNS cache lookups.
2026-03-02 00:14:49 +08:00
tsosunchia
eb2ba884d1
Enhance DNS lookup in util.go: add timeout for context and improve IP parsing logic
...
Signed-off-by: tsosunchia <59512455+tsosunchia@users.noreply.github.com >
2025-10-29 20:55:31 +08:00
tsosunchia
75db288c0b
移除 trace/trace.go 中的全局 lastErr,改为线程安全的错误处理。加强 util/util.go 的 DomainLookUp 返回逻辑,确保在无可用 IP 时优雅地报错而不是 panic。
...
Signed-off-by: tsosunchia <59512455+tsosunchia@users.noreply.github.com >
2025-10-29 19:50:38 +08:00
Yunlq
72a3781ec5
优化了ICMP模式,提升了其在Windows上的表现
2025-10-04 10:59:43 +08:00
Yunlq
c7e663fa99
优化了UDP模式,提升了其在NAT环境下的表现
2025-09-22 21:01:43 +08:00
Yunlq
10c567287e
完成了windows上的TCP路由跟踪
2025-09-13 02:04:26 +08:00
Yunlq
e1ec195b00
修复了TCP/TCPv6模式中,mac端最终跳捕获失败的bug
2025-08-22 20:36:21 +08:00
Yunlq
267ee4aa2e
完成了UDP/UDPv6模式的并发优化
2025-08-21 17:05:20 +08:00
tsosunchia
424d31760a
稳定mpls表现
2025-08-19 00:21:55 +08:00
Yunlq
ea54b2c0c4
优化并统一了环境变量的读取和使用
2025-08-17 15:04:57 +08:00
Yunlq
6bb278a22b
允许用户设置SrcPort=-1来启用随机源端口模式
2025-08-17 02:11:15 +08:00
Yunlq
3e2f16be8b
精简了listenICMP()函数中重复的逻辑
2025-08-16 23:05:53 +08:00
Yunlq
0905975c24
完善了fetchIPData()函数的类型断言和nil保护
2025-08-16 15:59:36 +08:00
Yunlq
1a1a86a417
完善TCP/UDP的SrcIP绑定与端口可用性检测
2025-08-15 23:30:43 +08:00
Yunlq
ffd67a1d2d
优化了低Query场景下高丢包跳的输出
2025-08-10 23:27:50 +08:00
Yunlq
0485e3ae01
修复 trace 时延迟计时错误的问题
2025-08-07 22:53:24 +08:00
tsosunchia
b4d2038895
SNI和DNS不再分离,统一使用api.nxtrace.org
2025-07-08 11:30:21 +08:00
Yunlq
b20c4b74cc
add support for custom source ports and optimize some code
2025-04-16 02:54:19 +08:00
tsosunchia
90b1a3c1ad
固定TCP模式的源端口,改善在一些负载均衡网络环境下的效果,在使用ENV "NEXTTRACE_RANDOMPORT" 支持继续随机分配源端口。
...
https://github.com/nxtrace/NTrace-core/issues/296
2025-04-13 20:26:54 +08:00
breakertt
eea77b1f0d
Enhance ipinfoLocal.mmdb file lookup ( #66 )
...
* Enhance ipinfoLocal.mmdb file lookup
* Refactor get NEXTTRACE_IPINFOLOCALPATH env variable into util
2024-08-15 21:26:57 +08:00
tsosunchia
156f8914d8
删除一些没必要的赋值
2023-12-08 16:01:06 +08:00
tsosunchia
c0455ca8e7
api变更
2023-12-01 16:32:44 +08:00
tsosunchia
98c0fa38ca
可设置是否隐匿目的IP
2023-11-13 11:23:07 +08:00
tsosunchia
b2870a823f
修改默认行为,当指定v4/v6时自动选择第一个IP方便脚本使用
2023-11-03 01:21:53 +08:00
tsosunchia
701abc3447
增加file参数支持文件读取列表进行路由测试
2023-10-14 09:08:29 +08:00
tsosunchia
a6848f8f23
仓库用途变更
...
要提交的变更:
修改: .github/workflows/build.yml
修改: .github/workflows/publishNewFormula.yml
修改: README.md
修改: README_zh_CN.md
修改: fast_trace/fast_trace_test.go
修改: go.mod
修改: go.sum
修改: pow/pow.go
修改: printer/basic.go
修改: util/latency.go
修改: util/latency_test.go
修改: util/util.go
修改: wshandle/client.go
2023-10-08 17:15:29 +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
tsosunchia
54242cfa8b
增加支持SOCKS5/HTTP代理,通过环境变量NEXTTRACE_PROXY配置.
...
如export NEXTTRACE_PROXY=socks5://127.0.0.1:10808
2023-06-07 03:15:29 +08:00
tsosunchia
2c86f86204
fix bugs:ipv6下fasttrace异常退出的问题
2023-06-04 05:27:21 +08:00
tsosunchia
8578109243
对rdns也进行了缓存
2023-06-02 02:12:35 +08:00
tsosunchia
089250fee1
提供不间断运行环境变量
2023-06-02 01:41:11 +08:00
tsosunchia
50582f0fd0
重构UA存放位置
2023-06-01 16:18:28 +08:00
tsosunchia
4d7831fd29
pow使用的ip也是优选IP
2023-06-01 14:08:32 +08:00
tsosunchia
b38fc18bb4
增加指定解析IPv4/IPv6的功能
2023-05-29 20:53:07 +08:00
tsosunchia
23d20de7c8
fix bug:fasttrace也进行nslookup
2023-05-29 19:51:16 +08:00
tsosunchia
e48b30c47a
增加json输出模式,修正使用ipinfo API查询的IP无ASN时的异常
...
PS: json输出模式主要目的是方便开发者调用NEXTTRACE
2023-05-28 13:58:27 +08:00
tsosunchia
bdfba172d1
revert
2023-03-03 12:02:48 +08:00
tsosunchia
a95a741ce2
增加scanf时的默认值
2023-03-02 22:12:34 +08:00
tsosunchia
362317e95e
format
2023-03-02 21:47:59 +08:00
sjlleo
88e69f7dc2
feat: enable pure Go and add DoT support
2023-02-20 03:49:10 +00:00
Leo
9871449b30
chore: IPv6 TCP Tracert Support for Fast Trace
2023-02-15 18:41:59 +08:00
Leo
5c0c490ae8
feat: add TCP IPv6 Support
2023-02-15 18:16:09 +08:00
tsosunchia
c8077919ce
优化rdns体验,默认开启traceMap
2023-02-01 15:56:12 +08:00