add def value

This commit is contained in:
YouROK
2021-07-20 11:47:39 +03:00
parent 8355ad3794
commit 82387df0b5

View File

@@ -28,20 +28,20 @@ type BTSets struct {
EnableDebug bool // print logs EnableDebug bool // print logs
// BT Config // BT Config
AcceptPeerCon bool AcceptPeerCon bool `default:"true"`
AnnTorrentsToDht bool AnnTorrentsToDht bool `default:"true"`
EnableIPv6 bool EnableIPv6 bool
DisableTCP bool DisableTCP bool
DisableUTP bool DisableUTP bool
DisableUPNP bool DisableUPNP bool
DisableDHT bool DisableDHT bool
DisablePEX bool DisablePEX bool
DisableUpload bool DisableUpload bool
DownloadRateLimit int // in kb, 0 - inf DownloadRateLimit int // in kb, 0 - inf
UploadRateLimit int // in kb, 0 - inf UploadRateLimit int // in kb, 0 - inf
ConnectionsLimit int ConnectionsLimit int
//DhtConnectionLimit int // 0 - inf //DhtConnectionLimit int // 0 - inf
PeersListenPort int PeersListenPort int
//Strategy int // 0 - RequestStrategyDuplicateRequestTimeout, 1 - RequestStrategyFuzzing, 2 - RequestStrategyFastest //Strategy int // 0 - RequestStrategyDuplicateRequestTimeout, 1 - RequestStrategyFuzzing, 2 - RequestStrategyFastest
} }