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

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

View File

@@ -15,7 +15,7 @@ class StartProxy
{
try {
$proxyType = $server->proxyType();
if (is_null($proxyType) || $proxyType === 'NONE') {
if (is_null($proxyType) || $proxyType === 'NONE' || $server->proxy->force_stop) {
return 'OK';
}
$commands = collect([]);