mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 12:46:44 +00:00
restore loopback check for self address for peersMsg
This commit is contained in:
parent
28ba7dd68e
commit
251f37e589
1 changed files with 1 additions and 2 deletions
|
|
@ -477,8 +477,7 @@ func (peer *Peer) PeerList() []interface{} {
|
|||
ds = append(ds, addr)
|
||||
}
|
||||
ourAddr := peer.ourListenAddr
|
||||
if ourAddr != nil && !ourAddr.IP.IsUnspecified() {
|
||||
// if ourAddr != nil && !ourAddr.IP.IsLoopback() && !ourAddr.IP.IsUnspecified() {
|
||||
if ourAddr != nil && !ourAddr.IP.IsLoopback() && !ourAddr.IP.IsUnspecified() {
|
||||
ds = append(ds, ourAddr)
|
||||
}
|
||||
return ds
|
||||
|
|
|
|||
Loading…
Reference in a new issue