mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
p2p/enode: fix lint issue
This commit is contained in:
parent
930f296c8e
commit
7183ff2cdc
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ func parseComplete(rawurl string) (*Node, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ip := ips[0]
|
||||
ip = ips[0]
|
||||
// Ensure the IP is 4 bytes long for IPv4 addresses.
|
||||
if ipv4 := ip.To4(); ipv4 != nil {
|
||||
ip = ipv4
|
||||
|
|
|
|||
Loading…
Reference in a new issue