From 59c5b22e6c5cf8cbf7c83781626a9b8b86ca0b31 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 17 Oct 2023 15:40:47 +0200 Subject: [PATCH] fix: always start proxy if not NONE is selected --- app/Models/Server.php | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/app/Models/Server.php b/app/Models/Server.php index fa8fdbe39..07f975c48 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -193,23 +193,24 @@ public function team() } public function isProxyShouldRun() { - $shouldRun = false; if ($this->proxyType() === ProxyTypes::NONE->value) { return false; } - foreach ($this->applications() as $application) { - if (data_get($application, 'fqdn')) { - $shouldRun = true; - break; - } - } - if ($this->id === 0) { - $settings = InstanceSettings::get(); - if (data_get($settings, 'fqdn')) { - $shouldRun = true; - } - } - return $shouldRun; + // foreach ($this->applications() as $application) { + // if (data_get($application, 'fqdn')) { + // $shouldRun = true; + // break; + // } + // } + // ray($this->services()->get()); + + // if ($this->id === 0) { + // $settings = InstanceSettings::get(); + // if (data_get($settings, 'fqdn')) { + // $shouldRun = true; + // } + // } + return true; } public function isFunctional() {