mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
isLegalPort was used multiple places in the same way -- to validate the port and throw if necessary. Moved into internal/validators. PR-URL: https://github.com/nodejs/node/pull/31851 Reviewed-By: Richard Lau <riclau@uk.ibm.com>