[PR #5161] [CLOSED] feat: add configurable websocket path support #5151

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

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/5161
Author: @fsyxhua
Created: 2/6/2026
Status: Closed

Base: devHead: dev


📝 Commits (1)

  • 9115aa1 feat: add configurable websocket path support

📊 Changes

9 files changed (+33 additions, -6 deletions)

View changed files

📝 client/connector.go (+2 -2)
📝 conf/frpc_full_example.toml (+5 -0)
📝 conf/frps_full_example.toml (+4 -0)
📝 pkg/config/flags.go (+2 -0)
📝 pkg/config/v1/client.go (+4 -0)
📝 pkg/config/v1/server.go (+4 -0)
📝 pkg/util/net/dial.go (+5 -2)
📝 pkg/util/net/websocket.go (+5 -1)
📝 server/service.go (+2 -1)

📄 Description

  • Add websocketPath configuration option in server and client config
  • Add --websocket_path command line parameter for both frps and frpc
  • Modify DialHookWebsocket to accept custom path parameter
  • Update server to use configured path for websocket connections
  • Maintain backward compatibility with default path /~!frp

Closes #XXXX

WHY


🔄 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/5161 **Author:** [@fsyxhua](https://github.com/fsyxhua) **Created:** 2/6/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (1) - [`9115aa1`](https://github.com/fatedier/frp/commit/9115aa1709cbaba68c3d314567f24ce5bf8685a9) feat: add configurable websocket path support ### 📊 Changes **9 files changed** (+33 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `client/connector.go` (+2 -2) 📝 `conf/frpc_full_example.toml` (+5 -0) 📝 `conf/frps_full_example.toml` (+4 -0) 📝 `pkg/config/flags.go` (+2 -0) 📝 `pkg/config/v1/client.go` (+4 -0) 📝 `pkg/config/v1/server.go` (+4 -0) 📝 `pkg/util/net/dial.go` (+5 -2) 📝 `pkg/util/net/websocket.go` (+5 -1) 📝 `server/service.go` (+2 -1) </details> ### 📄 Description - Add websocketPath configuration option in server and client config - Add --websocket_path command line parameter for both frps and frpc - Modify DialHookWebsocket to accept custom path parameter - Update server to use configured path for websocket connections - Maintain backward compatibility with default path /~!frp Closes #XXXX ### WHY <!-- author to complete --> --- <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:55:40 -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#5151
No description provided.