mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
Handle unix sockets in misc:ip_to_list
This commit is contained in:
parent
d75d69d5d5
commit
e937ff62fe
@ -212,6 +212,8 @@ encode_base64(Data) ->
|
|||||||
-spec ip_to_list(inet:ip_address() | undefined |
|
-spec ip_to_list(inet:ip_address() | undefined |
|
||||||
{inet:ip_address(), inet:port_number()}) -> binary().
|
{inet:ip_address(), inet:port_number()}) -> binary().
|
||||||
|
|
||||||
|
ip_to_list({local, _}) ->
|
||||||
|
<<"unix">>;
|
||||||
ip_to_list({IP, _Port}) ->
|
ip_to_list({IP, _Port}) ->
|
||||||
ip_to_list(IP);
|
ip_to_list(IP);
|
||||||
%% This function clause could use inet_parse too:
|
%% This function clause could use inet_parse too:
|
||||||
|
Loading…
Reference in New Issue
Block a user