This commit is contained in:
YouROK
2021-08-25 22:18:14 +03:00
parent c219e52429
commit 3420fa44ba
11 changed files with 341 additions and 17 deletions

View File

@@ -27,6 +27,9 @@ type BTSets struct {
TorrentDisconnectTimeout int // in seconds
EnableDebug bool // print logs
// DLNA
EnableDLNA bool
// BT Config
EnableIPv6 bool
DisableTCP bool
@@ -38,8 +41,7 @@ type BTSets struct {
DownloadRateLimit int // in kb, 0 - inf
UploadRateLimit int // in kb, 0 - inf
ConnectionsLimit int
DhtConnectionLimit int // 0 - inf
PeersListenPort int
PeersListenPort int
}
func (v *BTSets) String() string {
@@ -123,7 +125,6 @@ func SetDefault() {
sets.CacheSize = 96 * 1024 * 1024 // 96 MB
sets.PreloadCache = 0
sets.ConnectionsLimit = 23
sets.DhtConnectionLimit = 500
sets.RetrackersMode = 1
sets.TorrentDisconnectTimeout = 30
sets.ReaderReadAHead = 95 // 95% preload