[PR #3404] [CLOSED] client: support websocket over TLS (wss://). #4742

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

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/3404
Author: @Dirbaio
Created: 4/12/2023
Status: Closed

Base: devHead: websocket-tls


📝 Commits (1)

  • 4e6e692 client: support websocket over TLS (wss://).

📊 Changes

1 file changed (+6 additions, -1 deletions)

View changed files

📝 client/service.go (+6 -1)

📄 Description

This adds support for using protocol=websocket and TLS at the same time in frpc.

The issue was the TLS handshake has to run before the websocket handshake. This required a small patch in golib: https://github.com/fatedier/golib/pull/20

Tested working with this config. The server is running frps behind an NGINX reverse proxy that terminates TLS.

[common]
server_addr = frp.example.com
server_port = 443
protocol = websocket
tls_enable = true
disable_custom_tls_first_byte = true

🔄 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/3404 **Author:** [@Dirbaio](https://github.com/Dirbaio) **Created:** 4/12/2023 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `websocket-tls` --- ### 📝 Commits (1) - [`4e6e692`](https://github.com/fatedier/frp/commit/4e6e692b301a0e868b821b71b5ac07e728ac3f3c) client: support websocket over TLS (wss://). ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `client/service.go` (+6 -1) </details> ### 📄 Description This adds support for using `protocol=websocket` and TLS at the same time in `frpc`. The issue was the TLS handshake has to run before the websocket handshake. This required a small patch in golib: https://github.com/fatedier/golib/pull/20 Tested working with this config. The server is running `frps` behind an NGINX reverse proxy that terminates TLS. ```ini [common] server_addr = frp.example.com server_port = 443 protocol = websocket tls_enable = true disable_custom_tls_first_byte = true ``` --- <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:47:52 -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#4742
No description provided.