]> source.dussan.org Git - rspamd.git/commit
[Fix] ASN: fix _FAIL symbol for when main symbol is disabled 3832/head
authorAnton Yuzhaninov <citrin+git@citrin.ru>
Wed, 28 Jul 2021 18:06:20 +0000 (19:06 +0100)
committerAnton Yuzhaninov <citrin+git@citrin.ru>
Wed, 28 Jul 2021 18:43:37 +0000 (19:43 +0100)
commit3789d5c1d38223a98c4fda0c3b987b88aa5849b8
tree006737d5a48e1841d2e3e752fb5f40a4d722986d
parent0b24fc6c10f2c4a9d5a684a67f06f3df2cd5a7f0
[Fix] ASN: fix _FAIL symbol for when main symbol is disabled

Fix error:
lua_dns_resolver_callback: call to dns callback failed: /usr/share/rspamd/plugins/asn.lua:74: attempt to concatenate field 'symbol' (a boolean value); trace: [1]:{/usr/share/rspamd/plugins/asn.lua:74 - <unknown> [Lua]};

Which happen when the main asn symbol is disabled in asn.conf using
symbol = false;

While here add nostat flag for ASN symbols (we cannot use them as
spam/ham signs).
src/plugins/lua/asn.lua