feat: if proxy stopped manually, it won't start back again

This commit is contained in:
Andras Bacsai committed 2024-05-22 20:42:08 +02:00
1 parent c102c23831
commit cccf86d388
4 files changed
+10 -8

No files matched your search

+3 -1
View File
@@ -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();