-
Notifications
You must be signed in to change notification settings - Fork 22
--listen
parameter lets one specify nonsensical behaviour
#153
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
Comments
Alternately, receptor could provide parameters like |
I can get behind the idea of making it an error to provide path information in the URL that won't be used. That would deal with the receptor://0.0.0.0/0:8888 case. Does path information possibly mean something in the case of a websocket listener? |
Good question. I've no idea. 🤷♀️ @matburt ? |
Also worth thinking about: can we tell receptor to bind to an interface, and let it discover that interface' address at runtime? That functionality is both common and useful, and it might affect how this issue is addressed. |
I can start receptor like so:
This works fine. But let's say I start receptor like so:
In this case, receptor will (to the best of my knowledge) silently discard the path
/foo
. This seems problematic to me. The user might expect one thing ("receptor will nest its listen interface under the/foo
path"), but receptor will do something else. This could be a source of user confusion.If receptor is going to discard the path, then why does it allow a path to be specified in the first place? Perhaps receptor should reject
--listen
arguments with information that'd be dropped anyway. For example, the following URL could be rejected:The logic could be something like:
The text was updated successfully, but these errors were encountered: