diff options
author | Badlop <badlop@process-one.net> | 2022-09-06 13:22:27 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2022-09-06 13:34:01 +0200 |
commit | 42e384beb720f053d223f63ad8a5006da1ea933b (patch) | |
tree | b92800f0121bf81fb011301fd08841cf09c06bed | |
parent | Update Github Action workflows: Ubuntu 18 is deprecated and 22 is added (diff) |
Fix unix socket support for ejabberd_http (thanks to Simon Lipp)(#3894)
-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 352a0f08..8662e5f1 100644 --- a/src/misc.erl +++ b/src/misc.erl @@ -222,6 +222,8 @@ encode_base64(Data) -> ip_to_list({local, _}) -> <<"unix">>; +ip_to_list(local) -> + <<"unix">>; ip_to_list({IP, _Port}) -> ip_to_list(IP); %% This function clause could use inet_parse too: |