Skip to content

dns: coerce port to number in lookupService

Previously, port could be any number in dns.lookupService. This change throws a TypeError if port is outside the range of 0-65535. It also coerces the port to a number.

This includes the commit from https://github.com/nodejs/node/pull/4882 as it depends on it.

I have separated them into two PRs for the sake of cherry-picking to release branches though as this is semver-major.

Merge request reports

Loading