From a2952a43e462e47eb0ea73c188b9fba5130f8db9 Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Thu, 8 Sep 2022 23:49:56 -0700 Subject: [PATCH] update rtorrent config --- nix/home/programs/rtorrent/rtorrent.rc | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/nix/home/programs/rtorrent/rtorrent.rc b/nix/home/programs/rtorrent/rtorrent.rc index 69fc877..acb7210 100644 --- a/nix/home/programs/rtorrent/rtorrent.rc +++ b/nix/home/programs/rtorrent/rtorrent.rc @@ -7,10 +7,28 @@ schedule2 = set_bind_address, 0, 0, \ "branch=((cfg.interface.bind)), \ ((network.bind_address.set,(get_interface_ipv4_address,(cfg.interface.bind))))" -dht.mode.set = on +# Port range to use for listening. (port_range) +network.port_range.set = @dhtPort@-@dhtPort@ + +# Enable/disable peer exchange for torrents that aren't marked private. Disabled by default. (peer_exchange) +protocol.pex.set = 1 + +# Set whether the client should try to connect to UDP trackers (It can cause various problems if it's enabled, if you experience any with this option enabled then disable it.) +trackers.use_udp.set = 1 + +# Enable DHT support for trackerless torrents or when all trackers are down. +# May be set to "disable" (completely disable DHT), "off" (do not start DHT), +# "auto" (start and stop DHT as needed), or "on" (start DHT immediately). +# The default is "off". +# For DHT to work, a session directory must be defined. +dht.mode.set = auto dht.port.set = @dhtPort@ -protocol.pex.set = yes -trackers.use_udp.set = yes + +# Adding public DHT servers for easy bootstrapping +schedule2 = dht_node_1, 5, 0, "dht.add_node=router.utorrent.com:6881" +schedule2 = dht_node_2, 5, 0, "dht.add_node=dht.transmissionbt.com:6881" +schedule2 = dht_node_3, 5, 0, "dht.add_node=router.bitcomet.com:6881" +schedule2 = dht_node_4, 5, 0, "dht.add_node=dht.aelitis.com:6881" # Enable the default ratio group. ratio.enable=