fix(CheckProxy): update port conflict check to ensure accurate grep matching
This commit is contained in:
parent
c74cb45a32
commit
11ada83f1e
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ private function isPortConflict(Server $server, string $port, string $proxyConta
|
|||
'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'",
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in a new issue