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

invalid socket address syntax when using alternative transport for ws-listen #260

Open
milliero-se opened this issue Aug 31, 2024 · 2 comments

Comments

@milliero-se
Copy link

Using alternative transport for ws-listen does not appear to work as described in the documentation.
The invocations

websocat ws-l:tcp-l:127.0.0.1:8808 reuse:-
websocat ws-c:ws-l:ws-c:- tcp:127.0.0.1:5678

from the documentation both result in

websocat: invalid socket address syntax

My particular use case involves something like ws-l:tcp:*:* tcp:*:* like the connect-connect side of a "TCP gender changer".

websocat --version reports 1.13.0.

Btw this program is awesome. Thanks so much for your hard work. :)

@vi
Copy link
Owner

vi commented Aug 31, 2024

Maybe you meant ws-u:, i.e. ws-upgrade: instead of ws-l:?

ws-l: basically means ws-u:tcp-l:, so your command line is interpreted as ws-u:tcp-l:tcp-l:127.0.0.1:8808 and it parses tcp-l:127.0.0.1:8808 as a socket address.

@milliero-se
Copy link
Author

Ah, thank you! Those examples I pulled from the documentation are just typos/out of date then. I will experiment with ws-u.

Do you have a donation link somewhere? I'd love to buy you a coffee or two.

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

No branches or pull requests

2 participants