mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
p2p/simulations/adapters: ensure assigned port is in all node records
This commit is contained in:
parent
1372f8b1c6
commit
e9a5c60b1f
1 changed files with 1 additions and 1 deletions
|
|
@ -300,5 +300,5 @@ func (n *NodeConfig) initEnode(ip net.IP, tcpport int, udpport int) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (n *NodeConfig) initDummyEnode() error {
|
func (n *NodeConfig) initDummyEnode() error {
|
||||||
return n.initEnode(net.IPv4(127, 0, 0, 1), 0, 0)
|
return n.initEnode(net.IPv4(127, 0, 0, 1), int(n.Port), 0)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue