PieceStates bool
Quiet bool `help:"discard client logging"`
Dht bool
- TcpPeers bool
- UtpPeers bool
- Ipv4 bool
- Ipv6 bool
- Pex bool
+
+ TcpPeers bool
+ UtpPeers bool
+ Webtorrent bool
+
+ Ipv4 bool
+ Ipv6 bool
+ Pex bool
+
tagflag.StartPos
+
Torrent []string `arity:"+" help:"torrent file path or magnet uri"`
}{
UploadRate: -1,
DownloadRate: -1,
Progress: true,
Dht: true,
- TcpPeers: true,
- UtpPeers: true,
- Ipv4: true,
- Ipv6: true,
- Pex: true,
+
+ TcpPeers: true,
+ UtpPeers: true,
+ Webtorrent: true,
+
+ Ipv4: true,
+ Ipv6: true,
+ Pex: true,
}
func stdoutAndStderrAreSameFile() bool {
clientConfig.PublicIp4 = flags.PublicIP
clientConfig.PublicIp6 = flags.PublicIP
clientConfig.DisablePEX = !flags.Pex
+ clientConfig.DisableWebtorrent = !flags.Webtorrent
if flags.PackedBlocklist != "" {
blocklist, err := iplist.MMapPackedFile(flags.PackedBlocklist)
if err != nil {
DefaultRequestStrategy RequestStrategyMaker
Extensions PeerExtensionBits
+
+ DisableWebtorrent bool
}
func (cfg *ClientConfig) SetListenAddr(addr string) *ClientConfig {
sl := func() torrentTrackerAnnouncer {
switch u.Scheme {
case "ws", "wss":
+ if t.cl.config.DisableWebtorrent {
+ return nil
+ }
return t.startWebsocketAnnouncer(*u)
}
if u.Scheme == "udp4" && (t.cl.config.DisableIPv4Peers || t.cl.config.DisableIPv4) {