Merge pull request #140 from RiRe/patch-1

Fix DS records
This commit is contained in:
Pinga 2024-08-14 01:12:31 +03:00 committed by GitHub
commit 833278d475
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,7 +132,7 @@ Coroutine::create(function () use ($pool, $log, $c) {
$dsRecord = new ResourceRecord;
$dsRecord->setName($dname_clean . '.');
$dsRecord->setClass(Classes::INTERNET);
$dsRecord->setRdata(Factory::Ds($keytag, $alg, $digest, $digesttype));
$dsRecord->setRdata(Factory::Ds($keytag, $alg, hex2bin($digest), $digesttype));
$zone->addResourceRecord($dsRecord);
}
}
@ -225,4 +225,4 @@ Coroutine::create(function () use ($pool, $log, $c) {
// Return the connection to the pool
$pool->put($pdo);
}
});
});