From 2bd9c314b1f2bbac12a2908ab34a69ff8c678a83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Mon, 15 Jul 2024 19:55:11 +0700 Subject: [PATCH] Respect -proto_dist flag when specified multiple times --- lib/kernel/src/net_kernel.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/kernel/src/net_kernel.erl b/lib/kernel/src/net_kernel.erl index f99e847c10cd..0e7ff825c54c 100644 --- a/lib/kernel/src/net_kernel.erl +++ b/lib/kernel/src/net_kernel.erl @@ -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"]) @@ -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)