Skip to content

Commit

Permalink
allow port numbers up to 65535 in OutgoingRequest.setAuthority (#461)
Browse files Browse the repository at this point in the history
Fixes #460

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
  • Loading branch information
dicej authored Jul 3, 2024
1 parent d7ec53f commit 671844b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preview2-shim/lib/nodejs/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class OutgoingRequest {
if (
extra.length ||
(port !== undefined &&
(portNum.toString() !== port || portNum > 9999)) ||
(portNum.toString() !== port || portNum > 65535)) ||
!host.match(/^[a-zA-Z0-9-.]+$/)
)
throw undefined;
Expand Down

0 comments on commit 671844b

Please sign in to comment.