Browse Source

[Minor] Allow to load config with no controller defined

tags/2.7
Vsevolod Stakhov 3 years ago
parent
commit
d6fcb8bd18
2 changed files with 4 additions and 3 deletions
  1. 0
    2
      src/libserver/cfg_utils.c
  2. 4
    1
      test/functional/configs/proxy.conf

+ 0
- 2
src/libserver/cfg_utils.c View File

@@ -925,8 +925,6 @@ rspamd_config_post_load (struct rspamd_config *cfg,
msg_warn_config ("controller worker is unconfigured: learning,"
" periodic scripts, maps watching and many other"
" Rspamd features will be broken");

ret = FALSE;
}

ret = rspamd_symcache_validate (cfg->cache, cfg, FALSE) && ret;

+ 4
- 1
test/functional/configs/proxy.conf View File

@@ -1,7 +1,10 @@
options = {
filters = "spf"
filters = ["spf", "dkim", "regexp"]
url_tld = "${URL_TLD}"
pidfile = "${TMPDIR}/rspamd.pid"
lua_path = "${INSTALLROOT}/share/rspamd/lib/?.lua"
dns {
nameserver = ["8.8.8.8", "8.8.4.4"];
retransmits = 10;
timeout = 2s;
}

Loading…
Cancel
Save