mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-28 17:38:54 +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
|
p1_tls -> c2s_compressed_tls
|
||||||
end;
|
end;
|
||||||
ejabberd_http_bind -> http_bind;
|
ejabberd_http_bind -> http_bind;
|
||||||
|
ejabberd_http_ws -> websocket;
|
||||||
_ -> unknown
|
_ -> unknown
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
@ -1557,7 +1557,11 @@ user_info(User, Server, Query, Lang) ->
|
|||||||
c2s_compressed_tls ->
|
c2s_compressed_tls ->
|
||||||
<<"tls+zlib">>;
|
<<"tls+zlib">>;
|
||||||
http_bind ->
|
http_bind ->
|
||||||
<<"http-bind">>
|
<<"http-bind">>;
|
||||||
|
websocket ->
|
||||||
|
<<"websocket">>;
|
||||||
|
_ ->
|
||||||
|
<<"unknown">>
|
||||||
end,
|
end,
|
||||||
<<ConnS/binary,
|
<<ConnS/binary,
|
||||||
"://",
|
"://",
|
||||||
|
Loading…
Reference in New Issue
Block a user