Skip to content

Commit

Permalink
Merge pull request #3214 from Lekensteyn/fix-dkim-policy-check
Browse files Browse the repository at this point in the history
[Minor] Dkim_signing: correct is_skip_sign logic
  • Loading branch information
vstakhov committed Jan 16, 2020
2 parents e7bc102 + 845b8c0 commit 2f1cad9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lualib/lua_dkim_tools.lua
Expand Up @@ -211,9 +211,9 @@ local function prepare_dkim_signing(N, task, settings)
end

local function is_skip_sign()
return (settings.sign_networks and not is_sign_networks) and
(settings.auth_only and not is_authed) and
(settings.sign_local and not is_local)
return not (settings.sign_networks and is_sign_networks) and
not (settings.auth_only and is_authed) and
not (settings.sign_local and is_local)
end

if hdom then
Expand Down

0 comments on commit 2f1cad9

Please sign in to comment.