Skip to content

Commit

Permalink
Respect -proto_dist flag when specified multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Jul 15, 2024
1 parent 6dafb73 commit 2bd9c31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kernel/src/net_kernel.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2400,7 +2400,7 @@ split_node(Name) ->
-doc false.
protocol_childspecs() ->
case init:get_argument(proto_dist) of
{ok, [Protos]} ->
{ok, [Protos | _]} ->
protocol_childspecs(Protos);
_ ->
protocol_childspecs(["inet_tcp"])
Expand Down Expand Up @@ -2462,7 +2462,7 @@ hidden_argument() ->

start_protos(Node, CleanHalt, Listen) ->
case init:get_argument(proto_dist) of
{ok, [Protos]} ->
{ok, [Protos | _]} ->
start_protos(Node, Protos, CleanHalt, Listen);
_ ->
start_protos(Node, ["inet_tcp"], CleanHalt, Listen)
Expand Down

0 comments on commit 2bd9c31

Please sign in to comment.