cmd/devp2p: fix node.TCP -> node.UDP (#29879)

pull/29881/head
hattizai 5 months ago committed by GitHub
parent 3fef53447f
commit 2f06c1e854
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      cmd/devp2p/internal/v4test/framework.go

@ -62,7 +62,7 @@ func newTestEnv(remote string, listen1, listen2 string) *testenv {
if tcpPort = node.TCP(); tcpPort == 0 { if tcpPort = node.TCP(); tcpPort == 0 {
tcpPort = 30303 tcpPort = 30303
} }
if udpPort = node.TCP(); udpPort == 0 { if udpPort = node.UDP(); udpPort == 0 {
udpPort = 30303 udpPort = 30303
} }
node = enode.NewV4(node.Pubkey(), ip, tcpPort, udpPort) node = enode.NewV4(node.Pubkey(), ip, tcpPort, udpPort)

Loading…
Cancel
Save