From 58cc0f3d872bab2dbe1a08ef818837602623ff98 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 19 Oct 2021 13:37:18 +1100 Subject: [PATCH] Ending a conn because we don't like its ID is not an error (cherry picked from commit 2a5ba846cef9b4e035b3b88698f3e7f7d9d79251) --- client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index 3aa3ad25..c55eb1a7 100644 --- a/client.go +++ b/client.go @@ -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} -- 2.48.1