chore: ensure remsh prefix for remote nodes

for remsh prefixed nodes, ekka pick a random port to listen on
instead of following the conventional port mapping rule:
ekka listens on 4370 for emqx or emqx0 and 4371 for emqx1 and so on
This commit is contained in:
Zaiming (Stone) Shi 2022-02-20 19:47:23 +01:00
parent 5ab3d64f77
commit 05af1874aa
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ start_distribution(TargetNode, NameTypeArg, Cookie) ->
make_script_node(Node) ->
[Name, Host] = string:tokens(atom_to_list(Node), "@"),
list_to_atom(lists:concat([Name, "_upgrader_", os:getpid(), "@", Host])).
list_to_atom(lists:concat(["remsh_" ++ Name, "_upgrader_", os:getpid(), "@", Host])).
%% get name type from arg
get_name_type(NameTypeArg) ->