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

exit if the user has requested a specific port #954

Merged

Conversation

SvenDowideit
Copy link
Contributor

Signed-off-by: Sven Dowideit [email protected]

for #945

to go with dat-ecosystem-archive/dat-node#192

@SvenDowideit
Copy link
Contributor Author

I tried to work out how to use the lib/exit.js code, but couldn't figure out a way that worked.

bin/cli.js Outdated
@@ -20,7 +20,7 @@ var config = {
defaults: [
{ name: 'dir', abbr: 'd', help: 'set the directory for Dat' },
{ name: 'logspeed', default: 400 },
{ name: 'port', default: 3282, help: 'port to use for connections' },
{ name: 'port', default: 0, help: 'port to use for connections (tries 3282 by default)' },
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we'd be better removing this default. Otherwise dat-node won't try 3282 first.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh no it'll try 3828 first, nm. But still not sure we need this, just confuses things =).

@joehand
Copy link
Collaborator

joehand commented Mar 8, 2018

I tried to work out how to use the lib/exit.js code, but couldn't figure out a way that worked.

Cool, I can take a look at adding that.

@joehand
Copy link
Collaborator

joehand commented Mar 8, 2018

Can you check out these syntax changes

@joehand joehand added this to the 13.11 milestone Mar 8, 2018
@SvenDowideit
Copy link
Contributor Author

@joehand nice! thanks for the syntax pointer.

is there a test exception that can be configured for import-progress.js? to my naive reading, that seems like a false negative.

@joehand
Copy link
Collaborator

joehand commented Mar 23, 2018

is there a test exception that can be configured for import-progress.js? to my naive reading, that seems like a false negative.

ya not sure what was going on there. Made it one-liner to avoid indent error.

@joehand joehand merged commit 9ac2d07 into dat-ecosystem:master Jul 5, 2018
@SvenDowideit SvenDowideit deleted the error-out-on-sepecifed-port branch July 6, 2018 03:48
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.

2 participants