mirror of
https://github.com/snail007/goproxy.git
synced 2026-04-27 00:15:51 +03:00
[GH-ISSUE #382] proxy http failed #293
Labels
No labels
TODO
bug
duplicate
enhancement
good first issue
help wanted
helpful
invalid
need-confirm
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/goproxy#293
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @YangTe1 on GitHub (Jul 21, 2020).
Original GitHub issue: https://github.com/snail007/goproxy/issues/382
I need to proxy request to a foreign server.
using 'proxy tcp -t tcp -p ":8634" -T tcp -P "foreign_ip:8634"'
when i 'curl server_ip:8634', it's fine, and the log showed
but using 'proxy http -t tcp -p ":8634" -T tcp -P "foreign_ip:8634"'
when i 'curl server_ip:8634', it failed, the log showed
(server_ip means the server that deployed goproxy)
why it first jumped to server_ip:49022? and how to set it by myself?
@snail007 commented on GitHub (Jul 21, 2020):
goproxy is a proxies server , not http sever.
you do
curl server_ip:8634means you consider it as an http server.curl using proxy to connect to http server ,it's argument is -x http://foo:port ,such as curl -x http://127.0.0.1:8080 https://www.google.com , 127.0.0.1:8080 is a http proxies server.
@YangTe1 commented on GitHub (Jul 23, 2020):
是的,我的服务跑在foreign_ip:8634上,是想把server_ip:8634的请求转发过去。
国内这台服务器和国外的那台连接不稳定,我本来想用文档中的那个http+kcp的,不过一直会有上面那个日志的情况,请求没有转发过去(因为公司服务器不是所有端口都开放的,我也不清楚是不是那些49022之类的端口的问题,我试了加--always,那样的话只用一级http代理没什么问题,但是加上二级kcp代理就又和之前一样了)。
最后用tcp+kcp了