summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2022-02-16 21:18:47 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2022-02-16 21:19:21 +0000
commitd23dfcf2cd1fdec36e51268718f2e7b198900992 (patch)
tree4527de78b17143463f8c4e18f77eeb280a43c7d8 /src/plugins
parent38b8f1e5be4a2dbb0e1ff76facb32d6d6a44ef13 (diff)
downloadrspamd-d23dfcf2cd1fdec36e51268718f2e7b198900992.tar.gz
rspamd-d23dfcf2cd1fdec36e51268718f2e7b198900992.zip
[Fix] External_relay: Remove useless check of the map value
Issue: #4080
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/external_relay.lua5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/plugins/lua/external_relay.lua b/src/plugins/lua/external_relay.lua
index 8b20bbe82..31f6a1037 100644
--- a/src/plugins/lua/external_relay.lua
+++ b/src/plugins/lua/external_relay.lua
@@ -159,11 +159,6 @@ strategies.hostname_map = function(rule)
return
end
- if hostname_map:get_key(from_hn) ~= 'direct' then
- lua_util.debugm(N, task, 'sending hostname (%s) is not a direct relay', from_hn)
- return
- end
-
local rcvd_hdrs = task:get_received_headers()
-- Try find sending hostname in Received headers
for _, rcvd in ipairs(rcvd_hdrs) do