From 57748597018be6a778e1f6d14ebcec00e0bfd2ab Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 19 Jul 2019 14:13:42 +1000 Subject: [PATCH] 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. --- client.go | 1 - 1 file changed, 1 deletion(-) 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) -- 2.48.1