mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Handle unix sockets in misc:ip_to_list
This commit is contained in:
parent
d75d69d5d5
commit
e937ff62fe
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue