Skip to content

Commit

Permalink
Merge pull request #11654 from rabbitmq/rabbitmq-server-11653
Browse files Browse the repository at this point in the history
Take `-setcookie` argument into account for peer args
  • Loading branch information
dumbbell authored Jul 10, 2024
2 parents 50116f0 + c3c4612 commit 6985886
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion deps/rabbit/src/rabbit_peer_discovery.erl
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,12 @@ query_node_props(Nodes) when Nodes =/= [] ->
var_origins := #{erlang_cookie := environment}} ->
["-setcookie", atom_to_list(ErlangCookie) | VMArgs1];
_ ->
VMArgs1
case init:get_argument(setcookie) of
{ok, [[SetCookieArg]]} ->
["-setcookie", SetCookieArg | VMArgs1];
_ ->
VMArgs1
end
end,
VMArgs3 = maybe_add_proto_dist_arguments(VMArgs2),
VMArgs4 = maybe_add_inetrc_arguments(VMArgs3),
Expand Down

0 comments on commit 6985886

Please sign in to comment.