p2p/enode: fixup

This commit is contained in:
Felix Lange 2019-11-07 15:24:31 +01:00
parent 003e31ae95
commit 8917012331

View file

@ -31,9 +31,10 @@ import (
"github.com/ethereum/go-ethereum/p2p/enr"
)
var incompleteNodeURL = regexp.MustCompile("(?i)^(?:enode://)?([0-9a-f]+)$")
var lookupIPFunc func(name string) ([]net.IP, error)
var (
incompleteNodeURL = regexp.MustCompile("(?i)^(?:enode://)?([0-9a-f]+)$")
lookupIPFunc = net.LookupIP
)
// MustParseV4 parses a node URL. It panics if the URL is not valid.
func MustParseV4(rawurl string) *Node {