Reenable UTP despite it being broken, some binaries now have flags to disable it

This commit is contained in:
Matt Joiner 2014-12-26 17:18:15 +11:00
parent 9b0e387ac9
commit cc5dea6a39
1 changed files with 3 additions and 1 deletions

View File

@ -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 {