From 75d8076ac95477208dd5ade1231f8bbdd4b9144d Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 10 May 2021 16:23:05 +0545 Subject: [PATCH] skip certificate generation when localhost or hostname is IP --- app/http.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/http.php b/app/http.php index 0e88757ab3..d71db4a6a3 100644 --- a/app/http.php +++ b/app/http.php @@ -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