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.
This commit is contained in:
Matt Joiner 2019-07-19 14:13:42 +10:00
parent 1d8873552a
commit 5774859701
1 changed files with 0 additions and 1 deletions

View File

@ -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)