[Web] Fix DKIM import

This commit is contained in:
andryyy 2021-08-14 07:31:52 +02:00
parent d383c0ab9b
commit 2dfcfd16d0
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF

View File

@ -197,7 +197,7 @@ function dkim($_action, $_data = null, $privkey = false) {
return false;
}
try {
dkim('delete', $domain);
dkim('delete', (array)$domain);
$redis->hSet('DKIM_PUB_KEYS', $domain, $pem_public_key);
$redis->hSet('DKIM_SELECTORS', $domain, $dkim_selector);
$redis->hSet('DKIM_PRIV_KEYS', $dkim_selector . '.' . $domain, $private_key_normalized);