Skip to content

Commit 4d1373b

Browse files
committed
Fix duplicate P2pQuicPort bindings when IPv6 is enabled
1 parent b334e8d commit 4d1373b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • shared/services/rocketpool/assets/install/templates

shared/services/rocketpool/assets/install/templates/eth2.tmpl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,18 @@ services:
3737
- "{{$p2p}}:{{$p2p}}/tcp"
3838
{{- end}}
3939
{{- if eq .ConsensusClient.String "lighthouse"}}
40-
- "{{.Lighthouse.P2pQuicPort}}:{{.Lighthouse.P2pQuicPort}}/udp"
4140
{{- if .IsIPv6Enabled}}
4241
- "[::]:{{.Lighthouse.P2pQuicPort}}:{{.Lighthouse.P2pQuicPort}}/udp"
42+
{{- else}}
43+
- "{{.Lighthouse.P2pQuicPort}}:{{.Lighthouse.P2pQuicPort}}/udp"
4344
{{- end}}
4445
{{- else if eq .ConsensusClient.String "prysm"}}
4546
- "{{.Prysm.P2pQuicPort}}:{{.Prysm.P2pQuicPort}}/udp"
4647
{{- else if eq .ConsensusClient.String "lodestar"}}
47-
- "{{.Lodestar.P2pQuicPort}}:{{.Lodestar.P2pQuicPort}}/udp"
4848
{{- if .IsIPv6Enabled}}
49-
- "[::]:{{.Prysm.P2pQuicPort}}:{{.Prysm.P2pQuicPort}}/udp"
49+
- "[::]:{{.Lodestar.P2pQuicPort}}:{{.Lodestar.P2pQuicPort}}/udp"
50+
{{- else}}
51+
- "{{.Lodestar.P2pQuicPort}}:{{.Lodestar.P2pQuicPort}}/udp"
5052
{{- end}}
5153
{{- end}}
5254
{{- if and (eq .ConsensusClient.String "teku") .IsIPv6Enabled}}

0 commit comments

Comments
 (0)