mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Don't crash web admin when displaying info about websocket using users
This commit is contained in:
parent
9091fcb1a1
commit
8df134e025
2 changed files with 6 additions and 1 deletions
|
@ -2025,6 +2025,7 @@ get_conn_type(StateData) ->
|
|||
p1_tls -> c2s_compressed_tls
|
||||
end;
|
||||
ejabberd_http_bind -> http_bind;
|
||||
ejabberd_http_ws -> websocket;
|
||||
_ -> unknown
|
||||
end.
|
||||
|
||||
|
|
|
@ -1557,7 +1557,11 @@ user_info(User, Server, Query, Lang) ->
|
|||
c2s_compressed_tls ->
|
||||
<<"tls+zlib">>;
|
||||
http_bind ->
|
||||
<<"http-bind">>
|
||||
<<"http-bind">>;
|
||||
websocket ->
|
||||
<<"websocket">>;
|
||||
_ ->
|
||||
<<"unknown">>
|
||||
end,
|
||||
<<ConnS/binary,
|
||||
"://",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue