]> source.dussan.org Git - rspamd.git/commitdiff
Some fixes to rspamadm control
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 Dec 2015 17:00:18 +0000 (17:00 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 Dec 2015 17:00:18 +0000 (17:00 +0000)
src/rspamadm/control.c

index 42c17650a681ed6ddfd81e0feff7447d1fe399f2..979b7403f44f229482a4e9e81f489b754ad1cc91 100644 (file)
@@ -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);