From e937ff62fe76b9a55cc473e40892d701a9b0b972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Tue, 1 Dec 2020 15:29:27 +0100 Subject: [PATCH] Handle unix sockets in misc:ip_to_list --- src/misc.erl | 2 ++ 1 file changed, 2 insertions(+) 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: