https://github.com/oneclickvirt/nt3
三网路由查询模块
https://github.com/oneclickvirt/nt3
beijing chengdu cmcc ct cu goecs guangzhou nexttrace shanghai traceroute
Last synced: about 1 month ago
JSON representation
三网路由查询模块
- Host: GitHub
- URL: https://github.com/oneclickvirt/nt3
- Owner: oneclickvirt
- License: apache-2.0
- Created: 2024-06-27T06:48:18.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-01-18T03:27:56.000Z (4 months ago)
- Last Synced: 2025-03-28T07:34:15.291Z (about 2 months ago)
- Topics: beijing, chengdu, cmcc, ct, cu, goecs, guangzhou, nexttrace, shanghai, traceroute
- Language: Go
- Homepage: https://github.com/oneclickvirt/ecs
- Size: 67.4 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nt3
[](https://hits.spiritlhl.net)
[](https://github.com/oneclickvirt/nt3/actions/workflows/main.yaml)
三网路由查询模块
## 说明
- [x] 使用[nexttrace](https://github.com/nxtrace/NTrace-core)进行ICMP测试,预先加载定义好的广州、上海、北京、成都的三网地址
- [x] 支持双语输出,以```-l```指定```zh```或```en```可指定输出的语言,未指定时默认使用中文输出
- [x] 全平台编译支持(除了WIN)## TODO
- [ ] 隐藏路由多跳时仅显示一行
## 使用
下载、安装、更新
```
curl https://raw.githubusercontent.com/oneclickvirt/nt3/main/nt3_install.sh -sSf | bash
```或
```
curl https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt/nt3/main/nt3_install.sh -sSf | bash
```使用
```
nt3
```或
```
./nt3
```进行测试
无环境依赖,理论上适配所有系统和主流架构,更多架构请查看 https://github.com/oneclickvirt/nt3/releases/tag/output
```
Usage: nt3 [options]
-c string
Specify check type (both, ipv4, or ipv6) (default "ipv4")
-h Show help information
-l string
Specify language parameter (en or zh) (default "zh")
-loc string
Specify location (supports GZ, BJ, SH, CD; corresponding to Guangzhou, Beijing, Shanghai, Chengdu) (default "GZ")
-log
Enable logging
-v Show version information
```


## 卸载
```
rm -rf /root/nt3
rm -rf /usr/bin/nt3
```## 在Golang中使用
```
go get -u github.com/oneclickvirt/nt3@latest
```## Thanks
https://github.com/nxtrace/NTrace-core