From 11ada83f1e896ddf5d2e5d7bd8ae0c92548146e5 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Sat, 5 Apr 2025 13:13:15 +0200 Subject: [PATCH] fix(CheckProxy): update port conflict check to ensure accurate grep matching --- app/Actions/Proxy/CheckProxy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Actions/Proxy/CheckProxy.php b/app/Actions/Proxy/CheckProxy.php index c5d98c315..5d3ce745b 100644 --- a/app/Actions/Proxy/CheckProxy.php +++ b/app/Actions/Proxy/CheckProxy.php @@ -152,7 +152,7 @@ class CheckProxy 'available' => 'command -v netstat >/dev/null 2>&1', 'check' => [ // Get listening process details - "netstat_output=\$(netstat -tuln 2>/dev/null) && echo \"\$netstat_output\" | grep ':$port'", + "netstat_output=\$(netstat -tuln 2>/dev/null) && echo \"\$netstat_output\" | grep ':$port '", // Count listeners "echo \"\$netstat_output\" | grep ':$port' | grep -c 'LISTEN'", ],