代码拉取完成,页面将自动刷新
A simple proxy server.
+----------+ +------------+
| client |<--------+ | |
+----------+ +-------->+-----+<--------------->| server |
| | | |
+----------+ | | +------------+
| client |<----------------->| |
+----------+ | |
| | +------------+
+----------+ | L | | |
| client |<----------------->| B |<--------------->| server |
+----------+ | S | | |
| | +------------+
+----------+ | |
| client |<----------------->| |
+----------+ | | +------------+
| | | |
+----------+ +--------->+-----+<--------------->| server |
| client |<-------+ | |
+----------+ +------------+
As the chart above, easyproxy act as the LBS server. If you meet the situation that cannot access some service directly or need a server as a gateway, you may use this to proxy.
go get github.com/xsank/EasyProxy
go run build.go build
localhost 9527
, you can easily modify the default.json
to change the service. Any protocol based on TCP
would work well such as:mysql, ssh, svn...poll
,random
,iphash
strategies, and the default strategy is poll
,the easyproxy would add more if there is a demand.curl localhost:7259/statistic
to get the current connection status. If you want to know more runtime debug info about the proxy, you can curl http://localhost:7259/debug/pprof
to get more details.Easyproxy is distributed under MIT License.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。