mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +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)
|
ds = append(ds, addr)
|
||||||
}
|
}
|
||||||
ourAddr := peer.ourListenAddr
|
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)
|
ds = append(ds, ourAddr)
|
||||||
}
|
}
|
||||||
return ds
|
return ds
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue