mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 05:19:37 +00:00
feat: if proxy stopped manually, it won't start back again
This commit is contained in:
1 parent
c102c23831
commit
cccf86d388
4 files changed
+10
-8
No files matched your search
@@ -13,7 +13,9 @@ class CheckProxy
|
||||
if (!$server->isFunctional()) {
|
||||
return false;
|
||||
}
|
||||
if ($server->proxyType() === 'NONE') {
|
||||
$proxyType = $server->proxyType();
|
||||
if (is_null($proxyType) || $proxyType === 'NONE' || $server->proxy->force_stop) {
|
||||
ray('Not starting proxy');
|
||||
return false;
|
||||
}
|
||||
['uptime' => $uptime, 'error' => $error] = $server->validateConnection();
|
||||
|
||||
Reference in new issue
Block a user