rapiz1 / rathole

A lightweight and high-performance reverse proxy for NAT traversal, written in Rust. An alternative to frp and ngrok.
Apache License 2.0
8.8k stars 440 forks source link

Allow paths in remote_addr for websocket connections #362

Open madhavajay opened 1 month ago

madhavajay commented 1 month ago

Feature Proposed

[client]
remote_addr = "hostname.com/rathole"

Use Case Currently websocket connections throw an error if you use a path.

ERROR handle{service=domain}: rathole::client: Failed to run the control channel: invalid port value. Retry in 1.

Since kubernetes won't easily allow a tcp port and we need to share the main 80/433 http port, we need to host rathole on a sub path.

Is this an easy change?