4mir7z/bale_tunnel ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Rust tool that lets me use a Bale bot as a tunnel for internet access.
I want two parts, a client that runs inside a restricted network and exposes a local SOCKS5 proxy on 127.0.0.1:1080, and a server that runs somewhere with normal internet and makes the real TCP connection to whatever site I’m trying to reach. The two sides should talk through the Bale API by sending and receiving files or messages through a chat, with support for polling, retries, timeouts, and clean shutdown with Ctrl C.
It should be efficient, so please add streaming with buffering, chunking for larger data, and compression only when it actually helps. Make it usable with any Bale bot token and chat ID from environment variables, and keep the setup simple enough to build and run from the command line. If you need current Bale API details, look them up online first.
Are you gonna build this?
make sure you review the code using coderabbit