PieceStates bool
Quiet bool `help:"discard client logging"`
Dht bool
+ TcpPeers bool
+ UtpPeers bool
tagflag.StartPos
Torrent []string `arity:"+" help:"torrent file path or magnet uri"`
}{
tagflag.ParseArgs(&flags, args, tagflag.Parent(parent))
defer envpprof.Stop()
clientConfig := torrent.NewDefaultClientConfig()
+ clientConfig.DisableTCP = !flags.TcpPeers
+ clientConfig.DisableUTP = !flags.UtpPeers
clientConfig.DisableAcceptRateLimiting = true
clientConfig.NoDHT = !flags.Dht
clientConfig.Debug = flags.Debug