fix(CheckProxy): refine port conflict detection with improved grep patterns
This commit is contained in:
@@ -144,7 +144,7 @@ class CheckProxy
|
||||
// Get listening process details
|
||||
"ss_output=\$(ss -tuln state listening sport = :$port 2>/dev/null) && echo \"\$ss_output\"",
|
||||
// Count IPv4 listeners
|
||||
"echo \"\$ss_output\" | grep -c 'LISTEN.*:$port'",
|
||||
"echo \"\$ss_output\" | grep -c ':$port '",
|
||||
],
|
||||
],
|
||||
// Set 2: Use netstat as alternative to ss
|
||||
|
||||
Reference in New Issue
Block a user