Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When parsing port, get last element after ':' instead of second
The token parsed from netstat can take one of two forms: "0 0.0.0.0:6379" and ":::6379". If the for-loop hits the latter line first, then the line throws an exception. This modification ensures that both formats are supported.
- Loading branch information