]> source.dussan.org Git - rspamd.git/commitdiff
[Feature] Support rspamd_updates via https
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 13 Jun 2016 16:31:05 +0000 (17:31 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 13 Jun 2016 16:31:29 +0000 (17:31 +0100)
src/plugins/lua/rspamd_update.lua

index 25898d712d1ccd1eb318d1f6eadd33b8e5c5c177..9af937263863edb4c524085eea6e814aa25ca8ce 100644 (file)
@@ -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