Commit 6bff35b
committed
fix: use exact port matching in Windows netstat parsing
- Changed from substring match to regex-based port extraction
- Prevents false positives (e.g., port 8888 matching 88880)
- Parses LocalAddress column and extracts port number explicitly
- Handles both IPv4 (0.0.0.0:8888) and IPv6 ([::]:8888) formats
- Uses exact numeric equality comparison instead of string contains
- More robust and accurate port-based process detection1 parent 51e0704 commit 6bff35b
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
745 | | - | |
746 | | - | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
747 | 752 | | |
748 | | - | |
749 | | - | |
750 | | - | |
| 753 | + | |
751 | 754 | | |
752 | 755 | | |
753 | 756 | | |
| |||
0 commit comments