mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 16:40:05 +01:00
fix: check for the secure proxy stub when resecuring with a fresh config
This commit is contained in:
@@ -409,7 +409,7 @@ public function resecureForNewConfiguration(array $old, array $new)
|
|||||||
$newUrl = str_replace('.'.$oldTld, '.'.$tld, $url);
|
$newUrl = str_replace('.'.$oldTld, '.'.$tld, $url);
|
||||||
$siteConf = $this->getSiteConfigFileContents($url, '.'.$oldTld);
|
$siteConf = $this->getSiteConfigFileContents($url, '.'.$oldTld);
|
||||||
|
|
||||||
if (! empty($siteConf) && strpos($siteConf, '# valet stub: proxy.valet.conf') === 0) {
|
if (! empty($siteConf) && strpos($siteConf, '# valet stub: secure.proxy.valet.conf') === 0) {
|
||||||
// proxy config
|
// proxy config
|
||||||
$this->unsecure($url);
|
$this->unsecure($url);
|
||||||
$this->secure(
|
$this->secure(
|
||||||
|
|||||||
Reference in New Issue
Block a user