mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-08 07:58:40 +00:00
cmd/devp2p: ipv6 length should be 16
This commit is contained in:
parent
1abbae239d
commit
a405df0b0e
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ func formatAttrString(v rlp.RawValue) (string, bool) {
|
||||||
|
|
||||||
func formatAttrIP(v rlp.RawValue) (string, bool) {
|
func formatAttrIP(v rlp.RawValue) (string, bool) {
|
||||||
content, _, err := rlp.SplitString(v)
|
content, _, err := rlp.SplitString(v)
|
||||||
if err != nil || len(content) != 4 && len(content) != 6 {
|
if err != nil || len(content) != 4 && len(content) != 16 {
|
||||||
return "", false
|
return "", false
|
||||||
}
|
}
|
||||||
return net.IP(content).String(), true
|
return net.IP(content).String(), true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue