From 5836837967749bdfa110e1610f498f50163afbd2 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Sat, 5 Apr 2025 13:56:07 +0200 Subject: [PATCH] fix(CheckProxy): enhance port conflict detection by adjusting ss command for better output --- 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 cb146073e..b535f782e 100644 --- a/app/Actions/Proxy/CheckProxy.php +++ b/app/Actions/Proxy/CheckProxy.php @@ -142,7 +142,7 @@ class CheckProxy 'available' => 'command -v ss >/dev/null 2>&1', 'check' => [ // Get listening process details - "ss_output=\$(ss -tuln state listening sport = :$port 2>/dev/null) && echo \"\$ss_output\"", + "ss_output=\$(ss -Htuln state listening sport = :$port 2>/dev/null) && echo \"\$ss_output\"", // Count IPv4 listeners "echo \"\$ss_output\" | grep -c ':$port '", ],