cmd/torrent/main.go | 3 +++ diff --git a/cmd/torrent/main.go b/cmd/torrent/main.go index 02e5899725c7615f5a1fdcdb9c55642f958fabdf..221f6a0129d21275bbdc20c875a695d09465f84f 100644 --- a/cmd/torrent/main.go +++ b/cmd/torrent/main.go @@ -148,6 +148,7 @@ TcpPeers bool UtpPeers bool Ipv4 bool Ipv6 bool + Pex bool tagflag.StartPos Torrent []string `arity:"+" help:"torrent file path or magnet uri"` }{ @@ -159,6 +160,7 @@ TcpPeers: true, UtpPeers: true, Ipv4: true, Ipv6: true, + Pex: true, } func stdoutAndStderrAreSameFile() bool { @@ -221,6 +223,7 @@ clientConfig.Debug = flags.Debug clientConfig.Seed = flags.Seed clientConfig.PublicIp4 = flags.PublicIP clientConfig.PublicIp6 = flags.PublicIP + clientConfig.DisablePEX = !flags.Pex if flags.PackedBlocklist != "" { blocklist, err := iplist.MMapPackedFile(flags.PackedBlocklist) if err != nil {