mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
cmd/devp2p/internal/v4test: fix remoteEndpoint
This commit is contained in:
parent
262fe00377
commit
974538eaf1
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ func (te *testenv) localEndpoint(c net.PacketConn) v4wire.Endpoint {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (te *testenv) remoteEndpoint() v4wire.Endpoint {
|
func (te *testenv) remoteEndpoint() v4wire.Endpoint {
|
||||||
return v4wire.NewEndpoint(te.remoteAddr, 0)
|
return v4wire.NewEndpoint(te.remoteAddr.AddrPort(), 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
func contains(ns []v4wire.Node, key v4wire.Pubkey) bool {
|
func contains(ns []v4wire.Node, key v4wire.Pubkey) bool {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue