mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3761] http本质上就是tcp,为什么要单独做一个http和https呢?[Feature Request] #2990
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2990
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 @ryouaki on GitHub (Nov 10, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3761
Describe the feature request
我希望使用frp代理我的http。但是我只有ip没有域名,所以按目前的用法不能使用http模式。所以使用了tcp代理。但是这也导致我用浏览器访问的时候,无服务。而使用curl的时候却可以访问到服务器。
而http协议就是基于tcp协议开发的。那么是否可以直接使用一个tcp来同时处理http,https,tcp。而不需要单独处理?
Describe alternatives you've considered
No response
Affected area
@superzjg commented on GitHub (Nov 10, 2023):
tcp模式应该可以访问,经常使用tcp访问远端路由器的页面,指定一个
remotePort即可。不晓得你为何浏览器打不开,注意remotePort需要在服务器防火墙中打开。
至于http/https模式有个特性就是复用端口号。还有一些tcp没有的高级功能,参看:
https://gofrp.org/zh-cn/docs/reference/proxy/#httpproxyconfig
@xqzr commented on GitHub (Nov 10, 2023):
浏览器无法访问,可通过 F12 检查
@ryouaki commented on GitHub (Nov 13, 2023):
@ryouaki commented on GitHub (Nov 13, 2023):
无法访问,,,f12也是无法访问啊
@ryouaki commented on GitHub (Nov 13, 2023):
结案了。可以直接在customDomains写ip。最后发送给frpc的都是按customDomains + vhostHTTPPort去寻找服务的。
@jkhAIjava commented on GitHub (Jan 30, 2024):
老哥,customDomains是 配置在frpc,vhostHttpPort配置在frps上吗 @ryouaki
@shyandsy commented on GitHub (Dec 10, 2024):
@ryouaki 可以提供个例子么
我也是内网https,死活不通