Browse Source
Merge pull request #3214 from Lekensteyn/fix-dkim-policy-check
[Minor] Dkim_signing: correct is_skip_sign logic
pull/3219/head
Vsevolod Stakhov
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
lualib/lua_dkim_tools.lua
|
|
@ -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 |
|
|
|