From: Matt Joiner Date: Fri, 19 Jul 2019 04:13:42 +0000 (+1000) Subject: Try with the non-preferred header obfuscation if there's an error X-Git-Tag: v1.5.0~11 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=57748597018be6a778e1f6d14ebcec00e0bfd2ab;p=btrtrc.git Try with the non-preferred header obfuscation if there's an error 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. --- diff --git a/client.go b/client.go index 78c31c5d..7b2c3c55 100644 --- 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)