]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Try with the non-preferred header obfuscation if there's an error
authorMatt Joiner <anacrolix@gmail.com>
Fri, 19 Jul 2019 04:13:42 +0000 (14:13 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 19 Jul 2019 04:13:42 +0000 (14:13 +1000)
The function called was more selective about what it returned as an error, but that style is outdated (should use xerrors), and no longer returns as expected.

client.go

index 78c31c5de611173e379f3eff3313bfd5b5f726c1..7b2c3c550d58ca86b509371c256890c720102c78 100644 (file)
--- a/client.go
+++ b/client.go
@@ -654,7 +654,6 @@ func (cl *Client) establishOutgoingConn(t *Torrent, addr IpPort) (c *connection,
        c, err = cl.establishOutgoingConnEx(t, addr, ctx, obfuscatedHeaderFirst)
        if err != nil {
                //cl.logger.Printf("error establish connection to %s (obfuscatedHeader=%t): %v", addr, obfuscatedHeaderFirst, err)
-               return
        }
        if c != nil {
                torrent.Add("initiated conn with preferred header obfuscation", 1)