diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-05-07 14:40:14 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-05-07 14:40:14 +0100 |
commit | d6fc2656e21f77bb0bb9f546768afb43a63b4680 (patch) | |
tree | 5af39ea3895e50905fabd135b0e229537af448e2 /src | |
parent | fe707d0e5451b8d18e62fcb3d0028e6fc453c2da (diff) | |
download | rspamd-d6fc2656e21f77bb0bb9f546768afb43a63b4680.tar.gz rspamd-d6fc2656e21f77bb0bb9f546768afb43a63b4680.zip |
[Minor] Log source IP
Diffstat (limited to 'src')
-rw-r--r-- | src/controller.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/controller.c b/src/controller.c index 1f8524b84..fb1d15efc 100644 --- a/src/controller.c +++ b/src/controller.c @@ -563,13 +563,15 @@ rspamd_controller_check_password (struct rspamd_http_connection_entry *entry, } } - msg_info_session ("absent password has been specified"); + msg_info_session ("absent password has been specified; source ip: %s", + rspamd_inet_address_to_string_pretty (session->from_addr)); ret = FALSE; } else { if (rspamd_ftok_cstr_equal (password, "q1", FALSE) || rspamd_ftok_cstr_equal (password, "q2", FALSE)) { - msg_info_session ("deny default password for remote access"); + msg_info_session ("deny default password for remote access; source ip: %s", + rspamd_inet_address_to_string_pretty (session->from_addr)); ret = FALSE; goto end; } @@ -603,7 +605,8 @@ rspamd_controller_check_password (struct rspamd_http_connection_entry *entry, } else { msg_warn_session ( - "no password to check while executing a privileged command"); + "no password to check while executing a privileged command; source ip: %s", + rspamd_inet_address_to_string_pretty (session->from_addr)); ret = FALSE; } @@ -673,7 +676,8 @@ rspamd_controller_check_password (struct rspamd_http_connection_entry *entry, } if (check_normal == FALSE && check_enable == FALSE) { - msg_info ("absent or incorrect password has been specified"); + msg_info ("absent or incorrect password has been specified; source ip: %s", + rspamd_inet_address_to_string_pretty (session->from_addr)); ret = FALSE; } |