We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b4af50 + d7c0486 commit a6a546fCopy full SHA for a6a546f
src/rabbit_nodes.erl
@@ -73,8 +73,7 @@ cluster_name() ->
73
74
cluster_name_default() ->
75
{ID, _} = parts(node()),
76
- {ok, Host} = inet:gethostname(),
77
- {ok, #hostent{h_name = FQDN}} = inet:gethostbyname(Host),
+ FQDN = rabbit_net:hostname(),
78
list_to_binary(atom_to_list(make({ID, FQDN}))).
79
80
set_cluster_name(Name, Username) ->
0 commit comments