cmd/torrent/download.go | 2 ++ diff --git a/cmd/torrent/download.go b/cmd/torrent/download.go index 843dadf0582c09f5dc642678fd36e9bfefda9270..0b5d4d584b62d923cbe407bf9d40e1da5e3fec21 100644 --- a/cmd/torrent/download.go +++ b/cmd/torrent/download.go @@ -186,6 +186,7 @@ PieceStates bool `help:"Output piece state runs at progress intervals."` Quiet bool `help:"discard client logging"` Stats bool `help:"print stats at termination"` Dht bool `default:"true"` + PortForward bool `default:"true"` TcpPeers bool `default:"true"` UtpPeers bool `default:"true"` @@ -234,6 +235,7 @@ clientConfig.PublicIp4 = flags.PublicIP clientConfig.PublicIp6 = flags.PublicIP clientConfig.DisablePEX = !flags.Pex clientConfig.DisableWebtorrent = !flags.Webtorrent + clientConfig.NoDefaultPortForwarding = !flags.PortForward if flags.PackedBlocklist != "" { blocklist, err := iplist.MMapPackedFile(flags.PackedBlocklist) if err != nil {