erebe / wstunnel

Tunnel all your traffic over Websocket or HTTP2 - Bypass firewalls/DPI - Static binary available
Other
3.17k stars 287 forks source link

[windows] wstunnel force close stdio #229

Open AnorBanantje opened 2 months ago

AnorBanantje commented 2 months ago

Describe the bug When connection is not successfully started / ended or something wrong in command but command is valid to start process is not possible to kill wstunnel with CTRL +C / CTRL + Z? Only cmd, powershell window close help here.

To Reproduce Start powershell or CMD execute: ssh -o ProxyCommand=".\wstunnel.exe client -L stdio://%h:%p https://127.0.0.1" user@127.0.0.2 Try kill process with CTRL +C or CTRL + Z

Expected behavior when wstunnel is working CTRL+C or CTRL+Z most close wstunnel and application which uses it.

erebe commented 2 months ago

Indeed, I manage to reproduce on Windows. Regarding how to fix it, for now I don't know, as it seems particular to how windows handle the raw mode of the terminal. It seems all control command/key are swallowed