add PeriodicallyAnnounceTorrentsToDht opt

This commit is contained in:
nikk gitanes
2021-07-19 13:30:34 +03:00
parent fb1e5af2ad
commit ac74e2dc07
6 changed files with 12 additions and 2 deletions

View File

@@ -64,8 +64,7 @@ func (bt *BTServer) configure() {
cliVers := userAgent //"uTorrent/2210(25302)"
bt.config.AcceptPeerConnections = settings.BTsets.AcceptPeerCon
bt.config.PeriodicallyAnnounceTorrentsToDht = false
bt.config.PeriodicallyAnnounceTorrentsToDht = settings.BTsets.AnnTorrentsToDht
bt.config.Debug = settings.BTsets.EnableDebug
bt.config.DisableIPv6 = settings.BTsets.EnableIPv6 == false
bt.config.DisableTCP = settings.BTsets.DisableTCP