[PR #1384] [CLOSED] protocol = websocketsecure #4371

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/1384
Author: @stl0755
Created: 8/14/2019
Status: Closed

Base: devHead: master


📝 Commits (4)

📊 Changes

9 files changed (+13 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)
📝 models/config/client_common.go (+1 -1)
📝 utils/net/conn.go (+3 -1)
📝 utils/net/websocket.go (+3 -3)

📄 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 = websocketsecure

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/1384 **Author:** [@stl0755](https://github.com/stl0755) **Created:** 8/14/2019 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `master` --- ### 📝 Commits (4) - [`6451583`](https://github.com/fatedier/frp/commit/6451583e60184a90c274f6683a44e89fb7a9118e) Merge pull request #1349 from fatedier/dev - [`ae08811`](https://github.com/fatedier/frp/commit/ae08811636f6ab449deb30cf7579390f9d476ab3) Merge pull request #1364 from fatedier/dev - [`134a46c`](https://github.com/fatedier/frp/commit/134a46c00b59a641dc89ab9265ea73d2d7aa6ff2) Merge pull request #1369 from fatedier/dev - [`59f35fe`](https://github.com/fatedier/frp/commit/59f35fe9527215f03d3fd64bbe6e19fd678f21f5) protocol = websocketsecure ### 📊 Changes **9 files changed** (+13 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) 📝 `models/config/client_common.go` (+1 -1) 📝 `utils/net/conn.go` (+3 -1) 📝 `utils/net/websocket.go` (+3 -3) </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 = websocketsecure 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#4371
No description provided.