瀏覽代碼

[Fix] External_relay: Remove useless check of the map value

Issue: #4080
tags/3.2
Vsevolod Stakhov 2 年之前
父節點
當前提交
d23dfcf2cd
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 0 行新增5 行删除
  1. 0
    5
      src/plugins/lua/external_relay.lua

+ 0
- 5
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

Loading…
取消
儲存