erebe / wstunnel

Tunnel all your traffic over Websocket or HTTP2 - Bypass firewalls/DPI - Static binary available
BSD 3-Clause "New" or "Revised" License
4.38k stars 376 forks source link

Library usage #286

Open flokli opened 6 months ago

flokli commented 6 months ago

Is your feature request related to a problem? Please describe. I'd like to use wstunnel as a library. Essentially having some agents register with a server (currently just forwarding a unix socket, so for this I can use the CLI ) and on the server-side, re-exposing the connected clients again as unix sockets, and/or providing some listing (for this I'd need to write some custom code).

Describe the solution you'd like Expose parts of wstunnel as a library, so I can use reuse the client and protocol

Describe alternatives you've considered Adding more features into wstunnel directly.

erebe commented 5 months ago

For now, it is not planned, but maybe one day who knows

grimsteel commented 6 days ago

Would you be open to a PR that separates this into a CLI and library? (That would also make Android integration much easier.)

erebe commented 5 days ago

feel free to submit a PR @grimsteel , no issue at all