mirror of https://github.com/ehang-io/nps
fix: nat指定目标stun服务后,保证服务地址读取成功
parent
ab648d6f0c
commit
ab8aa6be9f
|
@ -115,6 +115,7 @@ func main() {
|
|||
return
|
||||
case "nat":
|
||||
c := stun.NewClient()
|
||||
flag.CommandLine.Parse(os.Args[2:])
|
||||
c.SetServerAddr(*stunAddr)
|
||||
nat, host, err := c.Discover()
|
||||
if err != nil || host == nil {
|
||||
|
|
Loading…
Reference in New Issue