diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-14 17:00:18 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-14 17:00:18 +0000 |
commit | 49f060ff5ad7947f2625df8e7c1b944b2f0457a0 (patch) | |
tree | 4f8130e86b82d0c353600bc128059681854b9c6e /src/rspamadm | |
parent | 53647a79050feb1e1cb823e60e4b1a51768342ff (diff) | |
download | rspamd-49f060ff5ad7947f2625df8e7c1b944b2f0457a0.tar.gz rspamd-49f060ff5ad7947f2625df8e7c1b944b2f0457a0.zip |
Some fixes to rspamadm control
Diffstat (limited to 'src/rspamadm')
-rw-r--r-- | src/rspamadm/control.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rspamadm/control.c b/src/rspamadm/control.c index 42c17650a..979b7403f 100644 --- a/src/rspamadm/control.c +++ b/src/rspamadm/control.c @@ -90,6 +90,7 @@ static void rspamd_control_error_handler (struct rspamd_http_connection *conn, GError *err) { rspamd_fprintf (stderr, "Cannot make HTTP request: %e\n", err); + rspamd_http_connection_unref (conn); } static gint @@ -175,6 +176,13 @@ rspamadm_control (gint argc, gchar **argv) else if (g_ascii_strcasecmp (cmd, "reresolve") == 0) { path = "/reresolve"; } + else if (g_ascii_strcasecmp (cmd, "recompile") == 0) { + path = "/recompile"; + } + else if (g_ascii_strcasecmp (cmd, "fuzzystat") == 0 || + g_ascii_strcasecmp (cmd, "fuzzy_stat") == 0) { + path = "/fuzzystat"; + } else { rspamd_fprintf (stderr, "unknown command: %s\n", cmd); exit (1); |