Skip to content
This repository has been archived by the owner on Feb 15, 2018. It is now read-only.

Commit

Permalink
Change gethostbyaddr implementation that is used by DNS clustering mo…
Browse files Browse the repository at this point in the history
…de to allow for different inetrc configurations to work.
  • Loading branch information
elifa committed Feb 15, 2017
1 parent b2c17e6 commit 5d48b3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autocluster_dns.erl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ unregister() -> ok.
%%
build_node_list() ->
Name = autocluster_config:get(autocluster_host),
Hosts = [extract_host(inet_res:gethostbyaddr(A)) || A <- inet_res:lookup(Name, in, a)],
Hosts = [extract_host(inet:gethostbyaddr(A)) || A <- inet_res:lookup(Name, in, a)],
lists:filter(fun(E) -> E =/= error end, Hosts).


Expand Down

0 comments on commit 5d48b3f

Please sign in to comment.