dependabot[bot]
3ce46aed15
chore(deps): bump actions/download-artifact from 6 to 7
...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact ) from 6 to 7.
- [Release notes](https://github.com/actions/download-artifact/releases )
- [Commits](https://github.com/actions/download-artifact/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: actions/download-artifact
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-15 14:05:29 +00:00
tsosunchia
b53f62cec3
Merge pull request #135 from nxtrace/dependabot/github_actions/actions/checkout-6
2025-11-24 22:44:20 +08:00
dependabot[bot]
609999fd8f
chore(deps): bump actions/checkout from 5 to 6
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-24 14:37:08 +00:00
tsosunchia
82cebb7046
Merge pull request #337 from nxtrace/main
...
SYNC
v1.5.0-rc.1
v1.5.0
2025-11-20 10:38:28 +08:00
tsosunchia
2b6ebf5d58
Merge pull request #134 from nxtrace/dependabot/go_modules/golang.org/x/crypto-0.45.0
...
chore(deps): bump golang.org/x/crypto from 0.44.0 to 0.45.0
CVE-2025-58181
CVE-2025-47914
2025-11-20 10:37:31 +08:00
dependabot[bot]
35cd98c142
chore(deps): bump golang.org/x/crypto from 0.44.0 to 0.45.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.44.0 to 0.45.0.
- [Commits](https://github.com/golang/crypto/compare/v0.44.0...v0.45.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-version: 0.45.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-20 02:28:24 +00:00
tsosunchia
7d77e570ca
Merge pull request #132 from Yunlq/main
...
升级Go至1.25.4并优化MPLS提取、geoip错误处理和RFC1918显示
2025-11-20 10:19:24 +08:00
Yunlq
071a496cc3
修改了README,并完善了一些参数的说明和处理
2025-11-20 01:39:21 +08:00
Yunlq
7aedfdd5f8
完善了geoip查询失败时的错误处理
2025-11-19 22:51:13 +08:00
Yunlq
bf26596f61
修复了英文模式下无法显示RFC1918等信息的bug
2025-11-19 20:41:42 +08:00
Yunlq
2f37f05786
更新workflow文件,以适配go1.25.4
2025-11-19 17:09:45 +08:00
Yunlq
0fde1e44c6
优化了MPLS Label的提取函数
2025-11-19 16:58:20 +08:00
tsosunchia
fb7975af90
Merge pull request #131 from nxtrace/dependabot/go_modules/golang.org/x/net-0.47.0
2025-11-17 22:13:44 +08:00
dependabot[bot]
b1136916fc
chore(deps): bump golang.org/x/net from 0.46.0 to 0.47.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.46.0 to 0.47.0.
- [Commits](https://github.com/golang/net/compare/v0.46.0...v0.47.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.47.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-17 14:12:23 +00:00
tsosunchia
a3e9ca8075
Merge pull request #130 from nxtrace/dependabot/go_modules/golang.org/x/sync-0.18.0
2025-11-11 02:00:03 +08:00
dependabot[bot]
8bdf934a57
chore(deps): bump golang.org/x/sync from 0.17.0 to 0.18.0
...
Bumps [golang.org/x/sync](https://github.com/golang/sync ) from 0.17.0 to 0.18.0.
- [Commits](https://github.com/golang/sync/compare/v0.17.0...v0.18.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sync
dependency-version: 0.18.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-10 17:33:27 +00:00
tsosunchia
cd3d3ff19d
Merge pull request #129 from nxtrace/dependabot/go_modules/golang.org/x/sys-0.38.0
2025-11-11 00:41:31 +08:00
dependabot[bot]
5a9b3b92e7
chore(deps): bump golang.org/x/sys from 0.37.0 to 0.38.0
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.37.0 to 0.38.0.
- [Commits](https://github.com/golang/sys/compare/v0.37.0...v0.38.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-version: 0.38.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-10 15:44:53 +00:00
tsosunchia
15997023f6
Merge pull request #334 from nxtrace/main
...
SYNC: v1.5.0-beta.1
2025-10-29 22:38:56 +08:00
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
acc19055ec
Merge pull request #333 from nxtrace/main
...
SYNC
2025-10-29 21:21:39 +08:00
tsosunchia
612880c02b
单实例复用 WebSocket 发送协程,Done 通道用 stateMu 管理并按连接刷新。
2025-10-29 21:21:17 +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
ab940de64e
修复 WsConn.Conn 并发访问,统一用 stateMu 加锁,避免竞态和死锁。
...
Signed-off-by: tsosunchia <59512455+tsosunchia@users.noreply.github.com >
2025-10-29 20:47:13 +08:00
tsosunchia
2f73e3d7d8
缓解 Leomoeapi 断线导致的卡死问题
...
Signed-off-by: tsosunchia <59512455+tsosunchia@users.noreply.github.com >
2025-10-29 20:11:41 +08:00
tsosunchia
df8c0c32c4
降低断线时期的 CPU 占用,增加 200 毫秒的等待时间
...
Signed-off-by: tsosunchia <59512455+tsosunchia@users.noreply.github.com >
2025-10-29 19:53:13 +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
tsosunchia
cb302df096
Merge pull request #331 from nxtrace/main
...
SYNC
2025-10-29 16:32:58 +08:00
tsosunchia
440aa4409a
Refine wshandle socket handling: add per-connection state mutex, serialize writes/
...
close with timeouts, unify host:port formatting for IPv6, and clean cache handling
to avoid duplicate reconnections.
2025-10-29 16:03:27 +08:00
tsosunchia
95d18fcec2
Remove obsolete case for IP2REGION in trace_handler.go
...
移除已弃用的 Ip2region 数据源处理
2025-10-29 14:50:18 +08:00
tsosunchia
25a20a89be
ipgeo/dn42.go 国家/地区名称存在前后空格污染
2025-10-29 14:48:42 +08:00
tsosunchia
6ee87dc60b
Update LtdCodeToCountryOrAreaName to use region names and codes
2025-10-29 14:37:54 +08:00
tsosunchia
3528c2de6c
移除无效的单元测试
2025-10-29 14:33:58 +08:00
tsosunchia
b76c6034a1
Refactor WebSocket connection state management with mutex for thread safety
2025-10-29 14:24:17 +08:00
tsosunchia
52206f7e8d
Add Globalping section to Chinese README with usage examples
2025-10-29 13:33:16 +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
5493690a8d
Update README to change section title from 'Known Issues' to 'Common questions' and remove outdated TCP mode note
2025-10-29 13:14:21 +08:00
tsosunchia
3a09d28ea3
Handle error on response body close to prevent panic
2025-10-29 13:03:35 +08:00
tsosunchia
dea2f7bf45
Add .gocache to .gitignore to exclude Go build cache
2025-10-29 13:01:00 +08:00
tsosunchia
50a164c5ea
Add nil check for response body to prevent panic
2025-10-29 12:58:16 +08:00
tsosunchia
81373fb3a4
Refactor trace_handler.go to improve variable naming for clarity
2025-10-29 12:48:35 +08:00
tsosunchia
0f09cddde0
Merge pull request #127 from nxtrace/alert-autofix-49
...
Potential fix for code scanning alert no. 49: Client-side cross-site scripting
2025-10-29 12:44:23 +08:00
tsosunchia
fee8812bdc
Refactor app.js to normalize error keys and prevent prototype pollution
2025-10-29 12:41:36 +08:00
tsosunchia and Copilot
d1c6be66aa
Update server/web/assets/app.js
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-29 12:38:47 +08:00
tsosunchia and Copilot Autofix powered by AI
b2a70ac384
Potential fix for code scanning alert no. 49: Client-side cross-site scripting
...
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-10-29 12:30:19 +08:00
tsosunchia
d04f3d1ef0
Refactor globalping.go to add nil checks for ProbeMeasurement
2025-10-29 11:32:32 +08:00
tsosunchia
3715f3b183
Refactor trace_handler.go to improve target parsing and error handling
2025-10-29 11:20:18 +08:00
tsosunchia
fc1c580ad7
Refactor ws_handler.go to improve session handling and snapshot logic
2025-10-29 11:16:42 +08:00
tsosunchia
5bf76a52d7
Refactor globalping.go to improve hop limit handling and loop structure
2025-10-29 11:14:58 +08:00