Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add localPort connection option to specify socket bind port #324

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

m4rcelofs
Copy link

... when connecting, the same way it's done with localAddress.

Node added support for this on v0.11.13+, see issue 7092

@ghost
Copy link

ghost commented Feb 8, 2015

Hi @m4rcelofs. Can you please add tests to this? Thank you!

@ghost ghost added the needs-feedback label Feb 8, 2015
@m4rcelofs
Copy link
Author

@apeiron Could you please elaborate on what should be tested? It's just an added parameter to net.createConnection.

@jirwin
Copy link
Collaborator

jirwin commented Feb 18, 2015

@m4rcelofs A simple test that validates that the config gets set and is used is sufficient. You should be able to introspect the localPort on the resulting connection object after the client is created/connected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants