remove AcceptPeerCon

This commit is contained in:
YouROK
2021-08-16 12:02:49 +03:00
parent 2b76cd15f7
commit 723fc6942e
2 changed files with 1 additions and 5 deletions

View File

@@ -28,7 +28,6 @@ type BTSets struct {
EnableDebug bool // print logs EnableDebug bool // print logs
// BT Config // BT Config
AcceptPeerCon bool `default:"true"`
EnableIPv6 bool EnableIPv6 bool
DisableTCP bool DisableTCP bool
DisableUTP bool DisableUTP bool
@@ -41,7 +40,6 @@ type BTSets struct {
ConnectionsLimit int ConnectionsLimit int
//DhtConnectionLimit int // 0 - inf //DhtConnectionLimit int // 0 - inf
PeersListenPort int PeersListenPort int
//Strategy int // 0 - RequestStrategyDuplicateRequestTimeout, 1 - RequestStrategyFuzzing, 2 - RequestStrategyFastest
} }
func (v *BTSets) String() string { func (v *BTSets) String() string {
@@ -120,7 +118,6 @@ func loadBTSets() {
func SetDefault() { func SetDefault() {
sets := new(BTSets) sets := new(BTSets)
sets.AcceptPeerCon = true
sets.EnableDebug = false sets.EnableDebug = false
sets.DisableUTP = true sets.DisableUTP = true
sets.CacheSize = 96 * 1024 * 1024 // 96 MB sets.CacheSize = 96 * 1024 * 1024 // 96 MB

View File

@@ -64,7 +64,6 @@ func (bt *BTServer) configure() {
upnpID := "TorrServer" upnpID := "TorrServer"
cliVers := userAgent //"uTorrent/2210(25302)" cliVers := userAgent //"uTorrent/2210(25302)"
bt.config.AcceptPeerConnections = settings.BTsets.AcceptPeerCon
bt.config.Debug = settings.BTsets.EnableDebug bt.config.Debug = settings.BTsets.EnableDebug
bt.config.DisableIPv6 = settings.BTsets.EnableIPv6 == false bt.config.DisableIPv6 = settings.BTsets.EnableIPv6 == false
bt.config.DisableTCP = settings.BTsets.DisableTCP bt.config.DisableTCP = settings.BTsets.DisableTCP