You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 12, 2021. It is now read-only.
I have been trying to find a solution to customize http_proxy/proxy.go to meet my requirement as follows.
In the illustration of http_proxy, it has been said that a non-p2p client can connect to a non-p2p server (such as an ordinary HTTP server) by going through 2 p2p proxies. The client sends HTTP requests to the first p2p proxy (called local proxy in http_proxy) which forwards the request to the second p2p proxy (called remote proxy). In proxy.go, the remote proxy uses a dummy server to serve the HTTP request locally and sends the response back to the first proxy.
Now, I want the second p2p proxy (remote proxy) to forward the HTTP request to a non-p2p real HTTP server. I run into the problem that I could not create a multiaddr for the non-p2p real real server in order to make the second p2p proxy (remote proxy) to connect to the non-p2p real server.
I have made extensive search for a solution to my requirement and failed in finding any. Does anyone have a solution or suggestion to make my desired configuration to work?