1
0
Fork 0

optimize check

This commit is contained in:
Philipp Holzer 2019-04-30 22:25:38 +02:00
parent 6afeacf02b
commit 007d0459be
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

View file

@ -30,9 +30,8 @@ class Hostxrd extends BaseModule
$config = $app->getConfig();
header("Content-type: text/xml");
$pubkey = $config->get('system', 'site_pubkey');
if (!$pubkey) {
if (!$config->get('system', 'site_pubkey', false)) {
$res = Crypto::newKeypair(1024);
$config->set('system','site_prvkey', $res['prvkey']);