File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
lib/lambda_ethereum_consensus/beacon Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ switches = [
18
18
log_file: :string ,
19
19
beacon_api: :boolean ,
20
20
beacon_api_port: :integer ,
21
- listen_address: :string ,
21
+ listen_address: [ :string , :keep ] ,
22
22
discovery_port: :integer ,
23
23
boot_nodes: :string ,
24
24
keystore_file: :string ,
@@ -123,7 +123,7 @@ bootnodes =
123
123
config :lambda_ethereum_consensus , :libp2p ,
124
124
port: discovery_port ,
125
125
bootnodes: bootnodes ,
126
- listen_addr: listen_address
126
+ listen_addr: [ listen_address ]
127
127
128
128
# Engine API
129
129
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ defmodule LambdaEthereumConsensus.Beacon.BeaconNode do
83
83
port = Keyword . fetch! ( config , :port )
84
84
bootnodes = Keyword . fetch! ( config , :bootnodes )
85
85
86
- listen_addr = Keyword . fetch! ( config , :listen_addr ) |> parse_listen_addr ( )
86
+ listen_addr = Keyword . fetch! ( config , :listen_addr ) |> Enum . map ( & parse_listen_addr / 1 )
87
87
88
88
if Enum . empty? ( bootnodes ) do
89
89
Logger . warning ( "No bootnodes configured." )
@@ -97,8 +97,6 @@ defmodule LambdaEthereumConsensus.Beacon.BeaconNode do
97
97
]
98
98
end
99
99
100
- defp parse_listen_addr ( [ ] ) , do: [ ]
101
-
102
100
defp parse_listen_addr ( addr ) do
103
101
case String . split ( addr , ":" ) do
104
102
[ ip , port ] ->
You can’t perform that action at this time.
0 commit comments