Reenable UTP despite it being broken, some binaries now have flags to disable it
This commit is contained in:
parent
9b0e387ac9
commit
cc5dea6a39
|
@ -413,7 +413,7 @@ func NewClient(cfg *Config) (cl *Client, err error) {
|
|||
downloadStrategy: cfg.DownloadStrategy,
|
||||
halfOpenLimit: socketsPerTorrent,
|
||||
dataDir: cfg.DataDir,
|
||||
disableUTP: true, // TODO: Write my own UTP library ಠ_ಠ
|
||||
disableUTP: cfg.DisableUTP,
|
||||
disableTCP: cfg.DisableTCP,
|
||||
|
||||
quit: make(chan struct{}),
|
||||
|
@ -421,6 +421,8 @@ func NewClient(cfg *Config) (cl *Client, err error) {
|
|||
|
||||
dataWaits: make(map[*torrent][]dataWait),
|
||||
}
|
||||
// TODO: Write my own UTP library ಠ_ಠ
|
||||
// cl.disableUTP = true
|
||||
cl.event.L = &cl.mu
|
||||
|
||||
if !cfg.NoDefaultBlocklist {
|
||||
|
|
Loading…
Reference in New Issue