25
1
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:
Paweł Chmielowski 2015-07-22 11:54:11 +02:00
parent 9091fcb1a1
commit 8df134e025
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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,
"://",