fix(CheckProxy): update port conflict check to ensure accurate grep matching
This commit is contained in:
@@ -152,7 +152,7 @@ class CheckProxy
|
|||||||
'available' => 'command -v netstat >/dev/null 2>&1',
|
'available' => 'command -v netstat >/dev/null 2>&1',
|
||||||
'check' => [
|
'check' => [
|
||||||
// Get listening process details
|
// 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
|
// Count listeners
|
||||||
"echo \"\$netstat_output\" | grep ':$port' | grep -c 'LISTEN'",
|
"echo \"\$netstat_output\" | grep ':$port' | grep -c 'LISTEN'",
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user