aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-13 17:31:05 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-13 17:31:29 +0100
commit320a2ccbf52b77bef68cb7619ef06c0d74b883a1 (patch)
treef5b9c89aef7a887988966fef1934f6b4f5bc953f
parent7eedffbb4b6390d2deb4bbc9c0feca8c3ebd3b99 (diff)
downloadrspamd-320a2ccbf52b77bef68cb7619ef06c0d74b883a1.tar.gz
rspamd-320a2ccbf52b77bef68cb7619ef06c0d74b883a1.zip
[Feature] Support rspamd_updates via https
-rw-r--r--src/plugins/lua/rspamd_update.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/lua/rspamd_update.lua b/src/plugins/lua/rspamd_update.lua
index 25898d712..9af937263 100644
--- a/src/plugins/lua/rspamd_update.lua
+++ b/src/plugins/lua/rspamd_update.lua
@@ -144,7 +144,8 @@ if section then
each(function(k, map)
-- Check sanity for maps
- if map:get_proto() == 'http' and not map:get_sign_key() then
+ local proto = map:get_proto()
+ if (proto == 'http' or proto == 'https') and not map:get_sign_key() then
if trusted_key then
map:set_sign_key(trusted_key)
else