mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #4762] frpc如何支持wss:// 协议 #3762
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#3762
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 @muzihuaner on GitHub (Apr 20, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4762
Bug Description
如题
准备把家里云pve 对接whmcs
用frp
结果novnc使用的是wss协议
frpc Version
1.60.1
frps Version
1.60.1
System Architecture
linux/amd64
Configurations
linux/amd64
Logs
No response
Steps to reproduce
...
Affected area
@rebron1900 commented on GitHub (Apr 21, 2025):
我最近在NAS上起了个minIO,web界面在访问桶的文件列表时也是需要用到websocket,但是现在不知道怎么设置。🤣🤣
目前的配置文件是这样的
@rebron1900 commented on GitHub (Apr 21, 2025):
试过用
requestHeaders.set来改请求头,但是好像没用,如:@muzihuaner commented on GitHub (Apr 21, 2025):
deepseek 给出的也是这个办法
@rebron1900 commented on GitHub (Apr 21, 2025):
我看到 https://github.com/fatedier/frp/issues/3162 这个issue里提到已经支持了,就是不知道如何开启,文档里好像也没细说。
@luyang93 commented on GitHub (Apr 25, 2025):
只是说frpc与frps间可以通过websocket协议
@rebron1900 commented on GitHub (Apr 25, 2025):
大佬,https2http插件没法启用wss吗
@luyang93 commented on GitHub (Apr 26, 2025):
a23455a737/test/e2e/v1/basic/client_server.go (L126-L134)自己看测试用例
type是tcp
如果是wss,proxies.plugin为http(s?)2https,用localAddr和hostHeaderRewrite处理WebSockets over SSL/TLS中的SSL/TLS配置
@github-actions[bot] commented on GitHub (May 11, 2025):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
@rebron1900 commented on GitHub (Aug 13, 2025):
大佬,你提到的这个我有点看不明白 😅
@chenbihao commented on GitHub (Sep 10, 2025):
不知道是否有反代? 我默认配置tcp转发,是可以穿透wss给服务的,在nginx中是这样配置的:
配置完后,页面的wss请求是可以用的,例如一些网页的vnc、网页的docker终端之类的
@rebron1900 commented on GitHub (Sep 10, 2025):
这个是在frpc端还是frps端呢
另外因为我现在所有端口统一都是使用一个端口来的,frps那边只负责把所有请求转发到frpc上。
@chenbihao commented on GitHub (Sep 10, 2025):
我是在s端有个反代,如果tcp类型且有反代的话考虑是否缺失这个头
如果你没有的话那应该不是这个问题,我没配过https2http还真不懂lol