mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
p2p: encode peerAddr.IP as RLP string
The spec says we should do that.
This commit is contained in:
parent
037866dc3c
commit
e771873980
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ func (d peerAddr) String() string {
|
|||
}
|
||||
|
||||
func (d *peerAddr) RlpData() interface{} {
|
||||
return []interface{}{d.IP, d.Port, d.Pubkey}
|
||||
return []interface{}{string(d.IP), d.Port, d.Pubkey}
|
||||
}
|
||||
|
||||
// Peer represents a remote peer.
|
||||
|
|
|
|||
Loading…
Reference in a new issue