mirror of
https://github.com/oneclickvirt/gostun.git
synced 2025-10-18 21:15:14 +08:00
fix: 回退版本
This commit is contained in:
@@ -83,7 +83,6 @@ func main() {
|
||||
gostunFlag.StringVar(&model.AddrStr, "server", "stun.voipgate.com:3478", "Specify STUN server address")
|
||||
gostunFlag.BoolVar(&model.EnableLoger, "e", true, "Enable logging functionality")
|
||||
gostunFlag.StringVar(&model.IPVersion, "type", "ipv4", "Specify ip test version: ipv4, ipv6 or both")
|
||||
gostunFlag.StringVar(&model.TransmissionProtocol, "protocol", "udp", "Specify transmission protocol: udp, tcp, or tls")
|
||||
gostunFlag.Parse(os.Args[1:])
|
||||
if help {
|
||||
fmt.Printf("Usage: %s [options]\n", os.Args[0])
|
||||
@@ -164,4 +163,4 @@ func main() {
|
||||
model.IPVersion = originalIPVersion
|
||||
res := stuncheck.CheckType()
|
||||
fmt.Printf("NAT Type: %s\n", res)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user