From: Matt Joiner Date: Fri, 26 Dec 2014 06:18:15 +0000 (+1100) Subject: Reenable UTP despite it being broken, some binaries now have flags to disable it X-Git-Tag: v1.0.0~1379 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=cc5dea6a394fadb66cca50e63afe2c58576cff89;p=btrtrc.git Reenable UTP despite it being broken, some binaries now have flags to disable it --- diff --git a/client.go b/client.go index 52dcc841..20cbdfc6 100644 --- a/client.go +++ b/client.go @@ -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 {