-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
exit if the user has requested a specific port #954
Conversation
I tried to work out how to use the lib/exit.js code, but couldn't figure out a way that worked. |
d07902f
to
a02ca0f
Compare
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)' }, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 =).
Cool, I can take a look at adding that. |
Can you check out these syntax changes |
Signed-off-by: Sven Dowideit <[email protected]>
a02ca0f
to
0eaa0d5
Compare
@joehand nice! thanks for the syntax pointer. is there a test exception that can be configured for |
ya not sure what was going on there. Made it one-liner to avoid indent error. |
Signed-off-by: Sven Dowideit [email protected]
for #945
to go with dat-ecosystem-archive/dat-node#192