remove DhtConnectionLimit

This commit is contained in:
YouROK
2021-08-25 22:19:18 +03:00
parent 3420fa44ba
commit c05ff5a380

View File

@@ -85,9 +85,6 @@ func (bt *BTServer) configure() {
ForceEncryption: settings.BTsets.ForceEncrypt,
}
if settings.BTsets.DhtConnectionLimit > 0 {
bt.config.ConnTracker.SetMaxEntries(settings.BTsets.DhtConnectionLimit)
}
if settings.BTsets.DownloadRateLimit > 0 {
bt.config.DownloadRateLimiter = utils.Limit(settings.BTsets.DownloadRateLimit * 1024)
}