Ending a conn because we don't like its ID is not an error
(cherry picked from commit 2a5ba846cef9b4e035b3b88698f3e7f7d9d79251)
This commit is contained in:
parent
c18e0abe52
commit
58cc0f3d87
|
@ -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
|
||||
// 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.r = deadlineReader{c.conn, c.r}
|
||||
|
|
Loading…
Reference in New Issue