inconshreveable / ngrok

Unified ingress for developers
https://ngrok.com
Other
24.17k stars 4.26k forks source link

rewriting host header in 1.x ngrok #603

Closed csurf closed 6 months ago

csurf commented 5 years ago

I need some assistance figuring out how to modify the http host header & implement a rewrite function for http requests within the old 1.x ngrok code. Basically, I just need some tips on where to best try to build in this feature.

Apparently, the raw tcp connections for both the incoming public requests & the outgoing client tunnels are joined/tee'ed, so that the raw bytes end up passing through from one pipe to another on the server. So, it isn't clear if it would be feasible to modify the headers on the ngrokd server, or if it should be done client-side. And, if it should be client-side, at what point in the code?

russorat commented 6 months ago

Thank you for opening this issue! As of April 2016, the ngrok service has permanently moved to https://ngrok.com/. To join the community and file bug reports or feature enhancements for the ngrok agent, please go to https://github.com/ngrok/ngrok.

This repository is no longer actively maintained and will be archived soon to reduce confusion with the latest ngrok versions. We thank you for the continued support of ngrok and look forward to seeing you over at ngrok.com and the ngrok Community Repo.