From b303f2c749c128243e7837475b936bccccdfce5b Mon Sep 17 00:00:00 2001 From: sagarnasit Date: Fri, 21 Dec 2018 17:39:10 +0530 Subject: [PATCH] Add host entry for site create with self SSL --- src/site-type/html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site-type/html.php b/src/site-type/html.php index 815684cf..9791f79b 100644 --- a/src/site-type/html.php +++ b/src/site-type/html.php @@ -266,7 +266,7 @@ private function create_site() { $this->level = 3; $this->configure_site_files(); - if ( ! $this->site_data['site_ssl'] ) { + if ( ! $this->site_data['site_ssl'] || 'self' === $this->site_data['site_ssl'] ) { \EE\Site\Utils\create_etc_hosts_entry( $this->site_data['site_url'] ); } if ( ! $this->skip_status_check ) {