Skip to content

Commit 5c64b5a

Browse files
committed
fix seeding
1 parent 86dceac commit 5c64b5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/torr/btserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ func (bt *BTServer) configure(ctx context.Context) {
111111
bt.config.ExtendedHandshakeClientVersion = cliVers
112112
bt.config.EstablishedConnsPerTorrent = settings.BTsets.ConnectionsLimit
113113
bt.config.TotalHalfOpenConns = 500
114-
bt.config.Seed = true
115114
// Encryption/Obfuscation
116115
bt.config.EncryptionPolicy = torrent.EncryptionPolicy{ // OE
117116
ForceEncryption: settings.BTsets.ForceEncrypt, // OE
@@ -124,6 +123,7 @@ func (bt *BTServer) configure(ctx context.Context) {
124123
bt.config.DownloadRateLimiter = utils.Limit(settings.BTsets.DownloadRateLimit * 1024)
125124
}
126125
if settings.BTsets.UploadRateLimit > 0 {
126+
bt.config.Seed = true
127127
bt.config.UploadRateLimiter = utils.Limit(settings.BTsets.UploadRateLimit * 1024)
128128
}
129129
if settings.TorAddr != "" {

0 commit comments

Comments
 (0)