mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
p2p/enode: fixup
This commit is contained in:
parent
003e31ae95
commit
8917012331
1 changed files with 4 additions and 3 deletions
|
|
@ -31,9 +31,10 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/p2p/enr"
|
"github.com/ethereum/go-ethereum/p2p/enr"
|
||||||
)
|
)
|
||||||
|
|
||||||
var incompleteNodeURL = regexp.MustCompile("(?i)^(?:enode://)?([0-9a-f]+)$")
|
var (
|
||||||
|
incompleteNodeURL = regexp.MustCompile("(?i)^(?:enode://)?([0-9a-f]+)$")
|
||||||
var lookupIPFunc func(name string) ([]net.IP, error)
|
lookupIPFunc = net.LookupIP
|
||||||
|
)
|
||||||
|
|
||||||
// MustParseV4 parses a node URL. It panics if the URL is not valid.
|
// MustParseV4 parses a node URL. It panics if the URL is not valid.
|
||||||
func MustParseV4(rawurl string) *Node {
|
func MustParseV4(rawurl string) *Node {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue