diff options
author | Mikhail Galanin <mgalanin@mimecast.com> | 2018-09-27 11:47:39 +0100 |
---|---|---|
committer | Mikhail Galanin <mgalanin@mimecast.com> | 2018-09-27 11:47:39 +0100 |
commit | c1c6c58ef594c80f3f6b488f33adfa3fb7647b9d (patch) | |
tree | 4641d213e7f37b71602378e4fcf89880d16f34a6 | |
parent | 8a96ed55204c460bd203691ba235f18e95c02ff6 (diff) | |
download | rspamd-c1c6c58ef594c80f3f6b488f33adfa3fb7647b9d.tar.gz rspamd-c1c6c58ef594c80f3f6b488f33adfa3fb7647b9d.zip |
[Minor] init DNS resolver in rspamdadm
-rw-r--r-- | src/rspamadm/rspamadm.c | 5 |
1 files changed, 5 insertions, 0 deletions
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, |