p2p/discover: fix setting localnode port in startLocalhostV5

pull/29603/head
Felix Lange 6 months ago
parent 56cafb22ca
commit f8b5fe3c3d
  1. 2
      p2p/discover/v5_udp_test.go

@ -88,7 +88,7 @@ func startLocalhostV5(t *testing.T, cfg Config) *UDPv5 {
}
realaddr := socket.LocalAddr().(*net.UDPAddr)
ln.SetStaticIP(realaddr.IP)
ln.Set(enr.UDP(realaddr.Port))
ln.SetFallbackUDP(realaddr.Port)
udp, err := ListenV5(socket, ln, cfg)
if err != nil {
t.Fatal(err)

Loading…
Cancel
Save