mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #871] 希望frpc登陆支持websocket协议 #692
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#692
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 @jettyu on GitHub (Aug 2, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/871
希望frpc支持websocket协议上报到frps
@jettyu commented on GitHub (Aug 2, 2018):
你好,非常感谢,我是指frps的--bind_port支持websocket协议,因为我现在的情况是对外只提供了一个80的web端口,只能支持http协议(包括websocket)协议,而且里面还用了nginx代理转发http到不同的域名,所以目前我这边frpc不能登陆成功
@fatedier commented on GitHub (Aug 2, 2018):
目前没有这样的计划,我对这方面不熟悉。
如果你能够提供一个 PR 大概演示下如何实现的话,可以考虑以可选的方式加入进去。
@fatedier commented on GitHub (Aug 3, 2018):
@jettyu 你能否尝试下自己实现一下这个功能然后由我 review?
@wzhsunn commented on GitHub (Aug 3, 2018):
吓我一跳,其实我也是需要这个功能……
@jettyu commented on GitHub (Aug 3, 2018):
@cloverzrg 可以的
@fatedier commented on GitHub (Aug 10, 2018):
@jettyu I have made some changes, you can review in #886, make sure it works fine in the behind of nginx.
I'm going to merge it to dev branch and release in next version.
@jettyu commented on GitHub (Aug 10, 2018):
@fatedier OK,I will do it.
@lingge commented on GitHub (Jun 5, 2021):
实际应用场景是这样的
https://xxxx.com/api/xxx 访问 http服务
wss://xxx.com/ws/xxx 访问的是 ws服务
type=http
; header_connection = Upgrade
; header_Upgrade = websocket
现在只能写死 header_Upgrade = websocket ,这样ws是可以访问;
但同时访问 http 服务器 报 405错误,
如果把 websocket 换成请求的 Upgrade 就OK的,
websocket 请求时会带有 Upgrade ;
nginx 中是这样配置的 Upgrade $upgrade
所以现在只能做成
https://xxxx.com/api/xxx 访问 http服务
wss://ws.xxx.com/ws/xxx 访问的是 ws服务