cenkalti / rain

🌧 BitTorrent client and library in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What are the router.bittorrent.com connections for?

NorseGaud opened this issue · comments

Hey! Quick question about these:
Screen Shot 2021-01-09 at 4 27 12 PM

Why is rain making connections to bittorrent.com? Any way to disable them?

These are well known nodes for bootstrapping DHT. You can override them in config or disable DHT completely.

rain/torrent/config.go

Lines 228 to 239 in 9bd29d7

DHTEnabled: true,
DHTHost: "0.0.0.0",
DHTPort: 7246,
DHTAnnounceInterval: 30 * time.Minute,
DHTMinAnnounceInterval: time.Minute,
DHTBootstrapNodes: []string{
"router.bittorrent.com:6881",
"dht.transmissionbt.com:6881",
"router.utorrent.com:6881",
"dht.libtorrent.org:25401",
"dht.aelitis.com:6881",
},