Skip to content

Commit

Permalink
Use inet_parse:ntoa/1 for peer addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
slfritchie committed Oct 4, 2013
1 parent 05dd3ab commit 7f5d0a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/riak_core_handoff_receiver.erl
Expand Up @@ -157,8 +157,8 @@ code_change(_OldVsn, State, _Extra) -> {ok, State}.

safe_peername(Skt, Mod) ->
case Mod:peername(Skt) of
{ok, Info} ->
Info;
{ok, {Host, Port}} ->
{inet_parse:ntoa(Host), Port};
_ ->
{unknown, unknown} % Real info is {Addr, Port}
end.

0 comments on commit 7f5d0a5

Please sign in to comment.