Skip to content

Conversation

@taylanken
Copy link

Added function ensurePort that asynchronously returns a valid port number and uses get-port module to get a valid, free port if none is provided or if the provided port is not a valid number. Closes #1

@derhuerst derhuerst mentioned this pull request Oct 1, 2018
@derhuerst
Copy link
Owner

Thanks!

@derhuerst
Copy link
Owner

Thinking about it, it would make more sense though to search for a random port when running the server via fasp-server, not when initialising via fasp-server init <name> <port>.

@derhuerst
Copy link
Owner

ping @taylanken 😉

@derhuerst
Copy link
Owner

ping @taylanken

2 similar comments
@derhuerst
Copy link
Owner

ping @taylanken

@derhuerst
Copy link
Owner

ping @taylanken

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use get-port if no port given

2 participants