mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
cosmetics
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
type BTSets struct {
|
||||
// Cache
|
||||
CacheSize int64 // in byte, def 96 MB
|
||||
CacheSize int64 // in byte, def 64 MB
|
||||
ReaderReadAHead int // in percent, 5%-100%, [...S__X__E...] [S-E] not clean
|
||||
PreloadCache int // in percent
|
||||
|
||||
@@ -123,9 +123,9 @@ func SetDefault() {
|
||||
sets.EnableDebug = false
|
||||
sets.CacheSize = 64 * 1024 * 1024 // 64 MB
|
||||
sets.PreloadCache = 50
|
||||
sets.ConnectionsLimit = 23
|
||||
sets.ConnectionsLimit = 25
|
||||
sets.RetrackersMode = 1
|
||||
sets.TorrentDisconnectTimeout = 30
|
||||
sets.ReaderReadAHead = 95 // 95% preload
|
||||
sets.ReaderReadAHead = 95 // 95%
|
||||
BTsets = sets
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ import (
|
||||
"server/settings"
|
||||
"server/torr/storage/torrstor"
|
||||
"server/torr/utils"
|
||||
"server/version"
|
||||
)
|
||||
|
||||
type BTServer struct {
|
||||
@@ -59,11 +60,12 @@ func (bt *BTServer) configure() {
|
||||
bt.storage = torrstor.NewStorage(settings.BTsets.CacheSize)
|
||||
bt.config.DefaultStorage = bt.storage
|
||||
|
||||
userAgent := "qBittorrent/4.3.2"
|
||||
peerID := "-qB4320-"
|
||||
upnpID := "TorrServer"
|
||||
cliVers := userAgent //"uTorrent/2210(25302)"
|
||||
userAgent := "qBittorrent/4.3.9"
|
||||
peerID := "-qB4390-"
|
||||
upnpID := "TorrServer/" + version.Version
|
||||
cliVers := userAgent
|
||||
|
||||
// bt.config.AcceptPeerConnections = false
|
||||
// bt.config.AlwaysWantConns = true
|
||||
bt.config.Debug = settings.BTsets.EnableDebug
|
||||
bt.config.DisableIPv6 = settings.BTsets.EnableIPv6 == false
|
||||
|
||||
@@ -4,8 +4,7 @@ export default {
|
||||
UseDisk: false,
|
||||
UploadRateLimit: 0,
|
||||
TorrentsSavePath: '',
|
||||
ConnectionsLimit: 23,
|
||||
DhtConnectionLimit: 0,
|
||||
ConnectionsLimit: 25,
|
||||
DisableDHT: false,
|
||||
DisablePEX: false,
|
||||
DisableTCP: false,
|
||||
|
||||
@@ -96,7 +96,6 @@
|
||||
"ConnectionsLimit": "Connections Limit",
|
||||
"ConnectionsLimitHint": "20-25 recommended",
|
||||
"DHT": "DHT (Distributed Hash Table)",
|
||||
"DhtConnectionLimit": "DHT Connection Limit",
|
||||
"Disk": "Disk",
|
||||
"DLNA": "DLNA Media Server",
|
||||
"DontAddRetrackers": "Don`t add retrackers",
|
||||
|
||||
@@ -96,7 +96,6 @@
|
||||
"ConnectionsLimit": "Торрент-соединения",
|
||||
"ConnectionsLimitHint": "рекомендуется 20-25",
|
||||
"DHT": "DHT (Distributed Hash Table)",
|
||||
"DhtConnectionLimit": "Лимит подключений DHT",
|
||||
"Disk": "ПЗУ / Накопитель",
|
||||
"DLNA": "DLNA-медиасервер",
|
||||
"DontAddRetrackers": "Ничего не делать",
|
||||
|
||||
@@ -96,7 +96,6 @@
|
||||
"ConnectionsLimit": "Обмеження з'єдань",
|
||||
"ConnectionsLimitHint": "рекомендовано 20-25",
|
||||
"DHT": "DHT (Distributed Hash Table)",
|
||||
"DhtConnectionLimit": "Обмеження з'єдань DHT",
|
||||
"Disk": "ПЗП / Носій",
|
||||
"DLNA": "DLNA-медиасервер",
|
||||
"DontAddRetrackers": "Нічого не робити",
|
||||
|
||||
Reference in New Issue
Block a user