diff options
Diffstat (limited to 'src/misc.erl')
-rw-r--r-- | src/misc.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/misc.erl b/src/misc.erl index 7599a1a34..fac3655cd 100644 --- a/src/misc.erl +++ b/src/misc.erl @@ -212,6 +212,8 @@ encode_base64(Data) -> -spec ip_to_list(inet:ip_address() | undefined | {inet:ip_address(), inet:port_number()}) -> binary(). +ip_to_list({local, _}) -> + <<"unix">>; ip_to_list({IP, _Port}) -> ip_to_list(IP); %% This function clause could use inet_parse too: |