]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Reenable UTP despite it being broken, some binaries now have flags to disable it
authorMatt Joiner <anacrolix@gmail.com>
Fri, 26 Dec 2014 06:18:15 +0000 (17:18 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 26 Dec 2014 06:18:15 +0000 (17:18 +1100)
client.go

index 52dcc84197519823ee754e8820b7f3c2993ebcd0..20cbdfc67d080e84e45ddab8c756c70fa8ce4cb1 100644 (file)
--- 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 {