[PR #1385] [CLOSED] protocol = wss #4370

Closed
opened 2026-05-05 14:40:49 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/1385
Author: @stl0755
Created: 8/14/2019
Status: Closed

Base: devHead: dev


📝 Commits (3)

📊 Changes

12 files changed (+134 additions, -11 deletions)

View changed files

📝 cmd/frpc/sub/http.go (+1 -1)
📝 cmd/frpc/sub/https.go (+1 -1)
📝 cmd/frpc/sub/stcp.go (+1 -1)
📝 cmd/frpc/sub/udp.go (+1 -1)
📝 cmd/frpc/sub/xtcp.go (+1 -1)
📝 conf/frpc_full.ini (+1 -1)
📝 conf/frps_full.ini (+3 -0)
📝 models/config/client_common.go (+1 -1)
📝 server/service.go (+9 -0)
📝 utils/net/conn.go (+3 -1)
📝 utils/net/websocket.go (+3 -3)
utils/net/wss.go (+109 -0)

📄 Description

websocketsecure support in frpc

It should fix https://github.com/fatedier/frp/issues/1161

frpc.ini
[common]
server_addr = 经cloudflare中转的域名
server_port = 443
protocol = wss

frps.ini
[common]
bind_port = 80

or behind traefik with https valid certificate such as acme

https://support.cloudflare.com/hc/zh-cn/articles/200170416-SSL-%E9%80%89%E9%A1%B9%E6%98%AF%E6%89%80%E6%8C%87%E7%9A%84%E6%98%AF%E4%BB%80%E4%B9%88-

Flexible (灵活) SSL:访问者与 Cloudflare 之间使用安全连接,但 Cloudflare 与您的源服务器之间没有安全连接。您的 Web 服务器不需要拥有 SSL 证书,但访问者仍然会浏览该网站的 HTTPS版本。如果您的网站上有任何敏感信息,并不建议使用此选项。此设置仅适用于端口 443-> 80,而不适用于我们支持的其他端口,如 2053。


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fatedier/frp/pull/1385 **Author:** [@stl0755](https://github.com/stl0755) **Created:** 8/14/2019 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (3) - [`c26c943`](https://github.com/fatedier/frp/commit/c26c9432b12e733d5a8739561b1ed84ec2ec423c) protocol = wss - [`9c1b9a5`](https://github.com/fatedier/frp/commit/9c1b9a5a74bba8d967bee69b6e3f833d26705688) test - [`e9b85f5`](https://github.com/fatedier/frp/commit/e9b85f586b069729bdf1365868ac5fe046bdc04c) test2 handshake fail ### 📊 Changes **12 files changed** (+134 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `cmd/frpc/sub/http.go` (+1 -1) 📝 `cmd/frpc/sub/https.go` (+1 -1) 📝 `cmd/frpc/sub/stcp.go` (+1 -1) 📝 `cmd/frpc/sub/udp.go` (+1 -1) 📝 `cmd/frpc/sub/xtcp.go` (+1 -1) 📝 `conf/frpc_full.ini` (+1 -1) 📝 `conf/frps_full.ini` (+3 -0) 📝 `models/config/client_common.go` (+1 -1) 📝 `server/service.go` (+9 -0) 📝 `utils/net/conn.go` (+3 -1) 📝 `utils/net/websocket.go` (+3 -3) ➕ `utils/net/wss.go` (+109 -0) </details> ### 📄 Description websocketsecure support in frpc It should fix https://github.com/fatedier/frp/issues/1161 frpc.ini [common] server_addr = 经cloudflare中转的域名 server_port = 443 protocol = wss frps.ini [common] bind_port = 80 or behind traefik with https valid certificate such as acme https://support.cloudflare.com/hc/zh-cn/articles/200170416-SSL-%E9%80%89%E9%A1%B9%E6%98%AF%E6%89%80%E6%8C%87%E7%9A%84%E6%98%AF%E4%BB%80%E4%B9%88- Flexible (灵活) SSL:访问者与 Cloudflare 之间使用安全连接,但 Cloudflare 与您的源服务器之间没有安全连接。您的 Web 服务器不需要拥有 SSL 证书,但访问者仍然会浏览该网站的 HTTPS版本。如果您的网站上有任何敏感信息,并不建议使用此选项。此设置仅适用于端口 443-> 80,而不适用于我们支持的其他端口,如 2053。 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:40:49 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#4370
No description provided.