diff --git a/cmd/npc/npc.go b/cmd/npc/npc.go index 05a4e92..9b6dba4 100644 --- a/cmd/npc/npc.go +++ b/cmd/npc/npc.go @@ -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 {