Skip to content

Commit

Permalink
cmd/devp2p: fix node.TCP -> node.UDP (ethereum#29879)
Browse files Browse the repository at this point in the history
  • Loading branch information
hattizai authored and stwiname committed Sep 9, 2024
1 parent a3b43f1 commit 0757f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/devp2p/internal/v4test/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func newTestEnv(remote string, listen1, listen2 string) *testenv {
if tcpPort = node.TCP(); tcpPort == 0 {
tcpPort = 30303
}
if udpPort = node.TCP(); udpPort == 0 {
if udpPort = node.UDP(); udpPort == 0 {
udpPort = 30303
}
node = enode.NewV4(node.Pubkey(), ip, tcpPort, udpPort)
Expand Down

0 comments on commit 0757f4d

Please sign in to comment.