1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 00:20:08 +01:00

fix: check for the secure proxy stub when resecuring with a fresh config

This commit is contained in:
Ashley Shenton
2022-11-29 12:09:31 +00:00
parent 3e5f16fee5
commit 566729b603

View File

@@ -409,7 +409,7 @@ public function resecureForNewConfiguration(array $old, array $new)
$newUrl = str_replace('.'.$oldTld, '.'.$tld, $url);
$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
$this->unsecure($url);
$this->secure(