fix: make sure proxy wont start in NONE mode

This commit is contained in:
Andras Bacsai
2023-10-12 08:51:32 +02:00
parent 6aca2740fb
commit a2f4d4ed6d
4 changed files with 10 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Actions\Proxy;
use App\Enums\ProxyTypes;
use App\Models\Server;
use Illuminate\Support\Str;
use Lorisleiva\Actions\Concerns\AsAction;
@@ -14,7 +15,7 @@ class StartProxy
{
$commands = collect([]);
$proxyType = $server->proxyType();
if ($proxyType === 'none') {
if ($proxyType === ProxyTypes::NONE->value) {
return 'OK';
}
$proxy_path = get_proxy_path();