aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-12-02 17:37:49 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-12-02 17:37:49 +0000
commite2dfcf15cc37650eee23ff00150bee9348ff11bb (patch)
treef98e4d37d208f81bafb7e0b3b1bc741350cdb778 /lualib
parentf90cb298025f4ebf08b541b65b157d464e056d63 (diff)
downloadrspamd-e2dfcf15cc37650eee23ff00150bee9348ff11bb.tar.gz
rspamd-e2dfcf15cc37650eee23ff00150bee9348ff11bb.zip
[Feature] Spf: Add external_relay option
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_util.lua b/lualib/lua_util.lua
index b9334a1b3..89a4016b2 100644
--- a/lualib/lua_util.lua
+++ b/lualib/lua_util.lua
@@ -1344,7 +1344,7 @@ exports.is_skip_local_or_authed = function(task, conf, ip)
conf = {false, false}
end
if ((not conf[2] and task:get_user()) or
- (not conf[1] and ip and ip:is_local())) then
+ (not conf[1] and type(ip) == 'userdata' and ip:is_local())) then
return true
end