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

SERVER: Port 0 is accepted when no "=" sign is used in specifying command line param #27

Open
reneknuvers opened this issue May 14, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@reneknuvers
Copy link

When starting the linux server compiled from the latest GitHub sources, and started with
JammerNetzServer -k JammerNetzSecret_202105140952.bin --port 22125 the output shows Server listening on port 0

Tried different port numbers, also didn't work.

I can't connect to the server, so using the --port switch may be breaking the server altogether?

Using Ubuntu 20.04 and the compilation instructions in the Github readme.

@reneknuvers
Copy link
Author

Ah: found the issue here. The command line should read --port=22125. When the = is committed, no error is thrown and the server binds to port 0, which will never work.

@christofmuc christofmuc added the bug Something isn't working label May 16, 2021
@christofmuc
Copy link
Owner

@reneknuvers Thanks! Yes, this is based on the weird JUCE command line parsing, which is not really gnu compatible. But it should abort with an error as Port 0 is not a valid number, I'll add some error checking!

@christofmuc christofmuc reopened this May 16, 2021
@christofmuc christofmuc changed the title SERVER: Port number not correctly displayed SERVER: Port 0 is accepted when no "=" sign is used in specifying command line param May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants