ekzhang/bore ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple command line tool that can expose a local port to the public internet through a remote server.
I want to be able to run one command on my laptop, point it at a server I control or a public demo server, and get a random remote address that forwards traffic back to my localhost service. It should also let me choose a specific remote port if it is free, and optionally expose something other than localhost if I need to. Please include a way to run the remote server too, with basic options for binding addresses and choosing the allowed port range.
Keep it lightweight, fast, and easy to self host, with just the core TCP tunneling behavior and nothing extra. A simple secret based authentication option would be great for private setups. If you need current details for Rust or deployment, look up the latest docs online.
Are you gonna build this?
make sure you review the code using coderabbit