-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request : websocket support (and altering of host header) #49
Comments
Hi @nicolaspernoud ! Thanks for the idea. I think this may be pretty useful. But I may be missing things. Regarding the headers: your example looks pretty much of what it should. I will take a deeper look once I have the time for it. PRs are welcome if you want to go ahead and try to make some code example 😃 |
Hello, Regarding the web sockets, golang proxy seems to be able to hijack the TCP connection when a upgrade header is present, writing only the headers with http handler and getting the body from an opaque tcp stream (?). Regarding the headers, I can surely do a pull request but the way I did it seems unclean, I'll see if I can come with something better. If so, I'll do a pull request. Thanks and best regards. |
Awesome, I'll take a look at the go code (it was a reference for this implementation actually). Thanks! |
@danielSanchezQ This would be a really useful feature to prioritize! |
@vidhatha Sadly I think I lack the knowledge and the time to implement it myself atm. But PRs, documentation and help in general is more than welcome. |
@danielSanchezQ Thanks for the quick response! completely understand. Right now I think what @nicolaspernoud suggested seems a good workaround. Let me see if I can help with this. Thanks for you all your efforts btw. |
Hello,
Thanks for this useful work.
It would be nice if this reverse proxy allowed proxying of websockets, as Go proxy does.
I tried proxying "websocketstest.com" through this proxy and it does not work.
Also, to do this proxying (as well with www.example.com), I needed to alter the host header to match the host of the proxy target in the
filtered_data_to_request
function. It could be nice if it was done by default, to allow proxying servers with virtual hosts.Thanks and best regards.
PS : the (dirty) way I replaced the host header below :
The text was updated successfully, but these errors were encountered: