Commit Graph
19 Commits
Author SHA1 Message Date
tsosunchia 7b8e68710c Fix cancellation handling across DNS, trace, and ws flows 2026-03-19 12:22:02 +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
Yunlq 0070082101 运行了go fmt和goimports 2025-08-17 16:12:26 +08:00
tsosunchia b4d2038895 SNI和DNS不再分离,统一使用api.nxtrace.org 2025-07-08 11:30:21 +08:00
tsosunchia 156f8914d8 删除一些没必要的赋值 2023-12-08 16:01:06 +08:00
tsosunchia c0455ca8e7 api变更 2023-12-01 16:32:44 +08:00
tsosunchia 1a4a15eb74 修复使用NEXTTRACE_HOSTPORT环境变量时不支持IPv6反代地址的问题 2023-10-31 04:03:32 +08:00
tsosunchia 1580c6111f add mpls func 2023-10-06 21:03:38 +08:00
Leo 79c39b655a clean mod && delete useless files 2023-06-26 14:51:19 +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 dcce91614f fix bugs:ft下maxhops、pktsize不正常显示、tracemap在配置环境变量时不能正常使用、trace时无法显示第一跳 2023-06-04 04:12:57 +08:00
tsosunchia 50582f0fd0 重构UA存放位置 2023-06-01 16:18:28 +08:00
tsosunchia 64371fb41a GetTracemap也适用优选IP 2023-06-01 15:40:04 +08:00
tsosunchia e48b30c47a 增加json输出模式,修正使用ipinfo API查询的IP无ASN时的异常
PS: json输出模式主要目的是方便开发者调用NEXTTRACE
2023-05-28 13:58:27 +08:00
tsosunchia ac1ee5e08c 增加tracemap的异常处理
防止与tracemap连接出现问题时报错
2023-05-24 16:08:59 +08:00
tsosunchia bdfba172d1 revert 2023-03-03 12:02:48 +08:00
tsosunchia 362317e95e format 2023-03-02 21:47:59 +08:00
sjlleo 91cd4fb8f4 chore: add traceMap (new) 2022-12-17 04:14:39 -05:00