mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
fix: node.TCP() => node.UDP()
This commit is contained in:
parent
94a8b296e4
commit
140583d2b2
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue