From 91b6d3f18c8614365bedc2d28ad2047cf88e3218 Mon Sep 17 00:00:00 2001 From: Alexander Simmerl Date: Mon, 21 May 2018 18:47:14 +0200 Subject: [PATCH] Do not set address for self error --- p2p/switch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/switch.go b/p2p/switch.go index 22307bd91..eba8679e7 100644 --- a/p2p/switch.go +++ b/p2p/switch.go @@ -570,7 +570,7 @@ func (sw *Switch) addPeer(pc peerConn) error { // and add to our addresses to avoid dialing again sw.addrBook.RemoveAddress(addr) sw.addrBook.AddOurAddress(addr) - return ErrSwitchConnectToSelf{addr} + return ErrSwitchConnectToSelf{} } // Avoid duplicate