Browse Source

Do not set address for self error

pull/1520/head
Alexander Simmerl 6 years ago
parent
commit
91b6d3f18c
No known key found for this signature in database GPG Key ID: 4694E95C9CC61BDA
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      p2p/switch.go

+ 1
- 1
p2p/switch.go View File

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


Loading…
Cancel
Save