vi / websocat

Command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions
MIT License
6.72k stars 257 forks source link

Can websocat perform force resolve? #198

Closed zmwmcfyy closed 9 months ago

zmwmcfyy commented 9 months ago

something likewebsocat wss://test.com --resolve "test.com:1234:10.10.10.10" would be very helpful

vi commented 9 months ago

You may want to use this command line:

websocat -t - ws-c:tls:tcp:10.10.10.10:443 --ws-c-uri=wss://test.com/ --tls-domain test.com

I'm not sure what 1234 means in your sample.

zmwmcfyy commented 9 months ago

You may want to use this command line:

websocat -t - ws-c:tls:tcp:10.10.10.10:443 --ws-c-uri=wss://test.com/ --tls-domain test.com

I'm not sure what 1234 means in your sample.

Just a remote port number. Thank you!