tsosunchia
2240f7959d
fix: handle LeoMoe override correctly
...
- re-evaluate LeoMoe websocket flag after NEXTTRACE_DATAPROVIDER override in server trace handler
- mirror the same check in CLI init so the websocket is only opened when the final provider is still
LEOMOEAPI
Signed-off-by: tsosunchia <59512455+tsosunchia@users.noreply.github.com >
2025-10-29 22:38:28 +08:00
tsosunchia
6c12de9842
Ensure Leo data provider always initialises websocket
2025-10-29 22:16:12 +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
tsosunchia
40f50e3e96
Add error handling for empty globalping measurement results
2025-10-29 10:40:09 +08:00
tsosunchia
0285fafa35
Add default local listen address handling with IPv4 and IPv6 support
2025-10-29 10:36:23 +08:00
tsosunchia
cb6cf066a7
Refactor address handling in cmd.go to improve input validation and access host determination
...
规范化监听地址:支持纯端口输入并统一回传可访问地址
2025-10-29 10:33:37 +08:00
tsosunchia and Copilot
b1b8e0407f
Update cmd/cmd.go:typo
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-29 10:22:52 +08:00
tsosunchia
b6bd2dd351
docs: update Globalping references and add project description
...
https://github.com/nxtrace/NTrace-V1/pull/123
2025-10-24 23:02:26 +08:00
Radu Lucuț
42f3b7d0f9
Merge pull request #123 from radulucut/globalping
...
feat: add support for Globalping
2025-10-24 22:51:08 +08:00
tsosunchia
6f2bd1acc5
fix: update data provider options and remove deprecated references : IP2region
2025-10-21 00:31:47 +08:00
tsosunchia
57683fcbdf
feat: add security warning for web console usage
2025-10-20 23:51:43 +08:00
tsosunchia
f6598edf18
整合depoly模式的ENV到env.go
2025-10-20 23:11:26 +08:00
tsosunchia
46dd4a11f1
流式传输
2025-10-20 17:16:08 +08:00
tsosunchia
762579e8be
增加depoly模式
2025-10-20 16:25:48 +08:00
tsosunchia
e62ae2b6d2
更新一些参数提示
2025-10-09 10:09:02 +08:00
Yunlq
72a3781ec5
优化了ICMP模式,提升了其在Windows上的表现
2025-10-04 10:59:43 +08:00
tsosunchia
f9de92fd58
tcp默认端口80,udp默认端口33494
2025-09-24 14:23:35 +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
tsosunchia
8a5db17508
移除win udpmode 不可用的提示
2025-08-27 12:06:11 +08:00
Yunlq
81efadb8f5
完善了错误处理
2025-08-27 10:57:22 +08:00
tsosunchia
7fec94c6d9
移除DontFragment功能
2025-08-26 19:58:04 +08:00
Yunlq
b5b4259953
优化了环境变量相关的处理
2025-08-26 17:40:21 +08:00
Yunlq
d66a63b011
移除了PrintFunc中的status通道,使用WithCancelCause区分中断退出
2025-08-26 15:56:42 +08:00
tsosunchia
b7756fa731
增加提示,仅在使用 UDP 探测时,确保 UDP 负载长度 ≥ 2
2025-08-25 10:09:33 +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
Yunlq
0070082101
运行了go fmt和goimports
2025-08-17 16:12:26 +08:00
Yunlq
f177e370ad
新增环境变量NEXTTRACE_DEVMODE,启用时输出panic日志而非直接退出
2025-08-17 15:53:31 +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
b1092ede15
全面引入context链路,优化了中断退出的流程
2025-08-14 15:01:58 +08:00
Yunlq
ffd67a1d2d
优化了低Query场景下高丢包跳的输出
2025-08-10 23:27:50 +08:00
SaltyFishEd
b5673b65a1
feat(geoip): support geoip data from ipdb.one
2025-04-18 14:43:56 +08:00
tsosunchia
28b329e365
update README
2025-04-16 09:44:22 +08:00
Yunlq
b20c4b74cc
add support for custom source ports and optimize some code
2025-04-16 02:54:19 +08:00
tsosunchia and Claude-3.7-Sonnet
bcd430c231
IPv6下也支持UDP Mode
...
Co-authored-by: Claude-3.7-Sonnet <ai@anthropic.com >
Co-authored-by: tsosunchia <59512455+tsosunchia@users.noreply.github.com >
要提交的变更:
修改: cmd/cmd.go
修改: fast_trace/fast_trace ipv6.go
修改: trace/tcp_ipv6.go
修改: trace/trace.go
重命名: trace/udp.go -> trace/udp_ipv4.go
新文件: trace/udp_ipv6.go
Signed-off-by: tsosunchia <59512455+tsosunchia@users.noreply.github.com >
2025-04-14 23:25:18 +08:00
tsosunchia
608a2904d4
若干修改,方便其他程序调用
...
https://github.com/nxtrace/NTrace-V1/issues/84
要提交的变更:
修改: cmd/cmd.go
修改: go.mod
修改: go.sum
修改: wshandle/client.go
2025-04-13 12:13:08 +08:00
tsosunchia
d233e0e38d
fasttrace和filetrace支持udpmode,且增加fasttrace和filetrace的port自定义参数
2024-12-21 21:37:54 +08:00
tsosunchia
183516b14c
修改部分UI表达
2024-12-21 21:00:45 +08:00
john xu
8774e8cd67
fix: close when createWsConn failed
2024-10-06 10:55:03 +08:00
tsosunchia
f47e742d81
FT应用dot参数
2024-09-02 04:33:04 +00:00
tsosunchia
d0fb43e947
add ipv4 tcp dontFragment option
2024-05-30 03:23:10 +00:00
tsosunchia
f50ca1f7f8
修正之前对于payload size设置的错误表述
2024-05-30 00:29:53 +08:00
tsosunchia
57d31a38f7
修改默认udptrace端口为符合RFC8487
2024-05-29 22:50:48 +08:00
tsosunchia
84b709de44
udptrace pktsize问题修正且默认发包间隔调小
2024-05-29 22:39:35 +08:00
tsosunchia
970cff3b72
优化代码
2024-05-13 20:42:56 +08:00
tsosunchia
5d796ce5cd
版本信息输出时应用色彩参数
2023-12-14 14:51:10 +08:00
tsosunchia
156f8914d8
删除一些没必要的赋值
2023-12-08 16:01:06 +08:00
tsosunchia
c0455ca8e7
api变更
2023-12-01 16:32:44 +08:00