fix(CheckProxy): enhance port conflict detection by adjusting ss command for better output
This commit is contained in:
parent
71823459a7
commit
5836837967
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ private function isPortConflict(Server $server, string $port, string $proxyConta
|
|||
'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 '",
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in a new issue