Please sign in to comment.
net: strict checking for internal/net isLegalPort
Add stricter testing for the isLegalPort method in internal/net. This ensures that odd inputs such as isLegalPort(true) and isLegalPort() aren't acceptable as valid port inputs. PR-URL: #5733 Reviewed-By: Colin Ihrig <firstname.lastname@example.org> Reviewed-By: Sakthipriyan Vairamani <email@example.com>
- Loading branch information...
Showing with 17 additions and 11 deletions.