From c1c6c58ef594c80f3f6b488f33adfa3fb7647b9d Mon Sep 17 00:00:00 2001 From: Mikhail Galanin Date: Thu, 27 Sep 2018 11:47:39 +0100 Subject: [Minor] init DNS resolver in rspamdadm --- src/rspamadm/rspamadm.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/rspamadm') diff --git a/src/rspamadm/rspamadm.c b/src/rspamadm/rspamadm.c index 052dcd1d6..49242ccaf 100644 --- a/src/rspamadm/rspamadm.c +++ b/src/rspamadm/rspamadm.c @@ -423,6 +423,11 @@ main (gint argc, gchar **argv, gchar **env) rspamd_set_logger (cfg, process_quark, &rspamd_main->logger, rspamd_main->server_pool); (void) rspamd_log_open (rspamd_main->logger); + + (void) dns_resolver_init (rspamd_main->logger, + rspamd_main->ev_base, + cfg); + g_log_set_default_handler (rspamd_glib_log_function, rspamd_main->logger); g_set_printerr_handler (rspamd_glib_printerr_function); rspamd_config_post_load (cfg, -- cgit v1.2.3