From c05ff5a380b3788110f5ddd6471a4687ca9e7b61 Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Wed, 25 Aug 2021 22:19:18 +0300 Subject: [PATCH] remove DhtConnectionLimit --- server/torr/btserver.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/server/torr/btserver.go b/server/torr/btserver.go index e205901..5ebc76e 100644 --- a/server/torr/btserver.go +++ b/server/torr/btserver.go @@ -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) }