optimize check

pull/7062/head
Philipp Holzer 4 years ago
parent 6afeacf02b
commit 007d0459be
No known key found for this signature in database
GPG Key ID: 517BE60E2CE5C8A5
  1. 3
      src/Module/Hostxrd.php

@ -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']);

Loading…
Cancel
Save