Ending a conn because we don't like its ID is not an error

(cherry picked from commit 2a5ba846cef9b4e035b3b88698f3e7f7d9d79251)
This commit is contained in:
Matt Joiner 2021-10-19 13:37:18 +11:00
parent c18e0abe52
commit 58cc0f3d87
1 changed files with 2 additions and 1 deletions

View File

@ -935,7 +935,8 @@ func (cl *Client) runHandshookConn(c *PeerConn, t *Torrent) error {
// address, we won't record the remote address as a doppleganger. Instead, the initiator // address, we won't record the remote address as a doppleganger. Instead, the initiator
// can record *us* as the doppleganger. // can record *us* as the doppleganger.
} */ } */
return errors.New("local and remote peer ids are the same") t.logger.WithLevel(log.Debug).Printf("local and remote peer ids are the same")
return nil
} }
c.conn.SetWriteDeadline(time.Time{}) c.conn.SetWriteDeadline(time.Time{})
c.r = deadlineReader{c.conn, c.r} c.r = deadlineReader{c.conn, c.r}