skip certificate generation when localhost or hostname is IP

This commit is contained in:
Damodar Lohani committed 2021-05-10 16:23:05 +05:45
1 parent 0c3bcb40a4
commit 75d8076ac9
1 file changed
+1
+1
View File
@@ -68,6 +68,7 @@ include __DIR__ . '/controllers/general.php';
function certificateSetup($domain)
{
if($domain=='localhost' || (bool)ip2long($domain)) return;
$domains = Config::getParam('domains', []);
if (!in_array($domain, $domains)) {
//schedule