Merge branch 'master' into new-torrent

This commit is contained in:
nikk gitanes
2021-08-27 18:40:53 +03:00
26 changed files with 3390 additions and 2778 deletions

View File

@@ -101,7 +101,7 @@ func GetTorrent(hashHex string) *Torrent {
go func() {
lockApi.Lock()
defer lockApi.Unlock()
log.TLogln("Add torrent")
log.TLogln("New torrent", tor.Hash())
tr, _ := NewTorrent(tor.TorrentSpec, bts)
if tr != nil {
tr.Title = tor.Title

View File

@@ -79,6 +79,7 @@ func (bt *BTServer) configure() {
bt.config.HTTPUserAgent = userAgent
bt.config.ExtendedHandshakeClientVersion = cliVers
bt.config.EstablishedConnsPerTorrent = settings.BTsets.ConnectionsLimit
bt.config.TotalHalfOpenConns = 500
// Encryption/Obfuscation
bt.config.HeaderObfuscationPolicy = torrent.HeaderObfuscationPolicy{
RequirePreferred: settings.BTsets.ForceEncrypt,