mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Don't crash web admin when displaying info about websocket using users
This commit is contained in:
parent
9091fcb1a1
commit
8df134e025
@ -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…
Reference in New Issue
Block a user