4 "github.com/anacrolix/torrent/dht"
5 "github.com/anacrolix/torrent/iplist"
8 // Override Client defaults.
10 // Store torrent file data in this directory unless TorrentDataOpener is
12 DataDir string `long:"data-dir" description:"directory to store downloaded torrent data"`
13 // The address to listen for new uTP and TCP bittorrent protocol
14 // connections. DHT shares a UDP socket with uTP unless configured
16 ListenAddr string `long:"listen-addr" value-name:"HOST:PORT"`
17 // Don't announce to trackers. This only leaves DHT to discover peers.
18 DisableTrackers bool `long:"disable-trackers"`
19 DisablePEX bool `long:"disable-pex"`
20 // Don't create a DHT.
21 NoDHT bool `long:"disable-dht"`
22 // Overrides the default DHT configuration.
23 DHTConfig *dht.ServerConfig
24 // Don't ever send chunks to peers.
25 NoUpload bool `long:"no-upload"`
26 // Upload even after there's nothing in it for us. By default uploading is
28 Seed bool `long:"seed"`
29 // User-provided Client peer ID. If not present, one is generated automatically.
31 // For the bittorrent protocol.
33 // For the bittorrent protocol.
34 DisableTCP bool `long:"disable-tcp"`
35 // Don't automatically load "$ConfigDir/blocklist".
36 NoDefaultBlocklist bool
37 // Defaults to "$HOME/.config/torrent". This is where "blocklist",
38 // "torrents" and other operational files are stored.
40 // Don't save or load to a cache of torrent files stored in
41 // "$ConfigDir/torrents".
42 DisableMetainfoCache bool
43 // Called to instantiate storage for each added torrent. Provided backends
44 // are in $REPO/data. If not set, the "file" implementation is used.
46 DisableEncryption bool `long:"disable-encryption"`
48 IPBlocklist *iplist.IPList