]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Rbl: Allow to change monitored_address
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 25 Jul 2019 20:27:48 +0000 (21:27 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 25 Jul 2019 20:27:48 +0000 (21:27 +0100)
src/plugins/lua/rbl.lua

index 70339fd85062311dd760e61d7dcfca0eedf29698..677496fa864cd7773a2258b94dcf1fe78267b582 100644 (file)
@@ -530,6 +530,7 @@ local rule_schema = ts.shape({
   hash = ts.one_of{"sha1", "sha256", "sha384", "sha512", "md5", "blake2"}:is_optional(),
   hash_format = ts.one_of{"hex", "base32", "base64"}:is_optional(),
   hash_len = (ts.integer + ts.string / tonumber):is_optional(),
+  monitored_address = ts.string:is_optional(),
 }, {
   extra_fields = ts.map_of(ts.string, ts.boolean)
 })