Skip to content

Conversation

@lpinca
Copy link
Member

@lpincalpinca commented Mar 3, 2021

Add documentation for the localPort option.

@nodejs-github-botnodejs-github-bot added doc Issues and PRs related to the documentations. http Issues or PRs related to the http subsystem. labels Mar 3, 2021
avoided. See [`--insecure-http-parser`][] for more information.
**Default:**`false`
*`localAddress`{string} Local interface to bind for network connections.
*`localPort`{number} Local port to connect from.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: add default value?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a constant. Is "OS selected" ok?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we add it, I think we should also add it here https://nodejs.org/api/net.html#net_socket_connect_options_connectlistener.

@benjamingr
Copy link
Member

Landed in 9092afd 🎉

benjamingr pushed a commit that referenced this pull request Mar 10, 2021
PR-URL: #37586 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
@lpincalpinca deleted the add/local-port-option branch March 10, 2021 16:26
danielleadams pushed a commit that referenced this pull request Mar 16, 2021
PR-URL: #37586 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
@danielleadamsdanielleadams mentioned this pull request Mar 16, 2021
targos pushed a commit that referenced this pull request May 1, 2021
PR-URL: #37586 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
@danielleadamsdanielleadams mentioned this pull request May 3, 2021
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docIssues and PRs related to the documentations.httpIssues or PRs related to the http subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@lpinca@benjamingr@Trott@cjihrig@marsonya@nodejs-github-bot