mirror of
https://github.com/xiaoqidun/probe.git
synced 2026-02-11 10:25:30 +08:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d44a5d5b8 | |||
| 862c52786b | |||
| 4a035a1031 | |||
| db7ad5bc6d |
@@ -1,5 +1,5 @@
|
|||||||
# probe
|
# probe
|
||||||
一个高性能、零依赖的纯 Go 语言 NAT 类型探测
|
一个纯 Go 语言编写的全平台 NAT 类型探测工具
|
||||||
|
|
||||||
# 快速安装
|
# 快速安装
|
||||||
```shell
|
```shell
|
||||||
@@ -23,8 +23,11 @@ probe -ip 4
|
|||||||
# 强制使用 IPv6 协议
|
# 强制使用 IPv6 协议
|
||||||
probe -ip 6
|
probe -ip 6
|
||||||
|
|
||||||
# 使用代理(仅限SOCKS5 UDP协议)
|
# 使用代理(SOCKS5 UDP协议)
|
||||||
probe -s5 127.0.0.1:54321
|
probe -s5 127.0.0.1:54321
|
||||||
|
|
||||||
|
# 使用自定义服务器(STUN协议)
|
||||||
|
probe -s1 stun.miwifi.com:3478
|
||||||
```
|
```
|
||||||
|
|
||||||
# 授权协议
|
# 授权协议
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ func main() {
|
|||||||
flag.StringVar(&s1, "s1", "stun.l.google.com:19302", "主服务器")
|
flag.StringVar(&s1, "s1", "stun.l.google.com:19302", "主服务器")
|
||||||
flag.StringVar(&s2, "s2", "", "次服务器")
|
flag.StringVar(&s2, "s2", "", "次服务器")
|
||||||
flag.StringVar(&s5, "s5", "", "代理地址")
|
flag.StringVar(&s5, "s5", "", "代理地址")
|
||||||
flag.DurationVar(&to, "to", 5*time.Second, "超时时间")
|
flag.DurationVar(&to, "to", 10*time.Second, "超时时间")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
network := "udp"
|
network := "udp"
|
||||||
switch ip {
|
switch ip {
|
||||||
|
|||||||
Reference in New Issue
Block a user