mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +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.
|
end.
|
||||||
|
|
||||||
-spec format_endpoint(endpoint()) -> string().
|
-spec format_endpoint(endpoint()) -> string().
|
||||||
format_endpoint({Port, IP, _Transport}) ->
|
format_endpoint({Port, IP, Transport}) ->
|
||||||
case Port of
|
case Port of
|
||||||
<<"unix:", _/binary>> ->
|
<<"unix:", _/binary>> ->
|
||||||
Port;
|
Port;
|
||||||
|
<<>> when (IP == local) and (Transport == tcp) ->
|
||||||
|
"local-unix-socket-domain";
|
||||||
Unix when is_binary(Unix) ->
|
Unix when is_binary(Unix) ->
|
||||||
Def = get_definitive_udsocket_path(Unix),
|
Def = get_definitive_udsocket_path(Unix),
|
||||||
<<"unix:", Def/binary>>;
|
<<"unix:", Def/binary>>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue