mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
add dlna
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -10,6 +10,7 @@ import (
|
||||
var (
|
||||
tdb *TDB
|
||||
Path string
|
||||
Port string
|
||||
ReadOnly bool
|
||||
HttpAuth bool
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user