mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
ejabberd_listener: Handle unix socket when logging remote client
This commit is contained in:
parent
afc54aeb20
commit
bb2f398fa2
1 changed files with 3 additions and 1 deletions
|
@ -562,10 +562,12 @@ format_error(Reason) ->
|
|||
end.
|
||||
|
||||
-spec format_endpoint(endpoint()) -> string().
|
||||
format_endpoint({Port, IP, _Transport}) ->
|
||||
format_endpoint({Port, IP, Transport}) ->
|
||||
case Port of
|
||||
<<"unix:", _/binary>> ->
|
||||
Port;
|
||||
<<>> when (IP == local) and (Transport == tcp) ->
|
||||
"local-unix-socket-domain";
|
||||
Unix when is_binary(Unix) ->
|
||||
Def = get_definitive_udsocket_path(Unix),
|
||||
<<"unix:", Def/binary>>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue