summaryrefslogtreecommitdiff
path: root/src/ejabberd_web_admin.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2015-06-17 11:32:42 +0200
committerBadlop <badlop@process-one.net>2015-06-17 11:32:42 +0200
commit1cf2dfe63afe0994988e756dfbb82524f50f6af8 (patch)
tree191945e302221c78fe275fe8e95af5b2cb4dcc1f /src/ejabberd_web_admin.erl
parentAllow password with ';' passed in ejabberdctl (#599) (diff)
New hide_sensitive_log_data option to hide client IP in log (#452 #471)
Diffstat (limited to 'src/ejabberd_web_admin.erl')
-rw-r--r--src/ejabberd_web_admin.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ejabberd_web_admin.erl b/src/ejabberd_web_admin.erl
index 239c8bac..da166581 100644
--- a/src/ejabberd_web_admin.erl
+++ b/src/ejabberd_web_admin.erl
@@ -203,7 +203,7 @@ process([<<"server">>, SHost | RPath] = Path,
{unauthorized, Error} ->
{BadUser, _BadPass} = Auth,
{IPT, _Port} = Request#request.ip,
- IPS = jlib:ip_to_list(IPT),
+ IPS = ejabberd_config:may_hide_data(jlib:ip_to_list(IPT)),
?WARNING_MSG("Access of ~p from ~p failed with error: ~p",
[BadUser, IPS, Error]),
{401,
@@ -235,7 +235,7 @@ process(RPath,
{unauthorized, Error} ->
{BadUser, _BadPass} = Auth,
{IPT, _Port} = Request#request.ip,
- IPS = jlib:ip_to_list(IPT),
+ IPS = ejabberd_config:may_hide_data(jlib:ip_to_list(IPT)),
?WARNING_MSG("Access of ~p from ~p failed with error: ~p",
[BadUser, IPS, Error]),
{401,