connection method and connected node of Jabber clients (thanks to
Oleg Palij)(EJAB-319)
SVN Revision: 1757
2008-12-26 Badlop <badlop@process-one.net>
+ * src/web/ejabberd_web_admin.erl: Show in ejabberd Web Admin the
+ connection method and connected node of Jabber clients (thanks to
+ Oleg Palij)(EJAB-319)
+
* src/ejabberd_config.erl: Option outgoing_s2s_options to define
s2s outgoing behaviour: IPv4, IPv6 and timeout (thanks to Stephan
Maka)(EJAB-665)
_ ->
[?XE("ul",
lists:map(fun(R) ->
- FIP = case ejabberd_sm:get_user_ip(
+ FIP = case ejabberd_sm:get_user_info(
User, Server, R) of
- undefined ->
+ offline ->
"";
- {IP, Port} ->
+ [{node, Node}, {conn, Conn}, {ip, {IP, Port}}] ->
+ ConnS = case Conn of
+ c2s -> "plain";
+ c2s_tls -> "tls";
+ c2s_compressed -> "zlib";
+ http_bind -> "http-bind";
+ http_poll -> "http-poll"
+ end,
" (" ++
+ ConnS ++ "://" ++
inet_parse:ntoa(IP) ++
":" ++
integer_to_list(Port)
+ ++ "#" ++ atom_to_list(Node)
++ ")"
end,
?LI([?C(R ++ FIP)])