[PR #3271] [MERGED] support bandwidth_limit set by server plugin #4709

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

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/3271
Author: @cbodonnell
Created: 1/26/2023
Status: Merged
Merged: 2/8/2023
Merged by: @fatedier

Base: devHead: dev


📝 Commits (10+)

📊 Changes

27 files changed (+284 additions, -41 deletions)

View changed files

📝 README.md (+3 -0)
📝 client/proxy/proxy.go (+1 -1)
📝 cmd/frpc/sub/http.go (+8 -0)
📝 cmd/frpc/sub/https.go (+8 -0)
📝 cmd/frpc/sub/root.go (+20 -18)
📝 cmd/frpc/sub/stcp.go (+8 -0)
📝 cmd/frpc/sub/sudp.go (+8 -0)
📝 cmd/frpc/sub/tcp.go (+8 -0)
📝 cmd/frpc/sub/tcpmux.go (+8 -0)
📝 cmd/frpc/sub/udp.go (+8 -0)
📝 cmd/frpc/sub/xtcp.go (+8 -0)
📝 conf/frpc_full.ini (+2 -0)
📝 doc/server_plugin.md (+2 -0)
📝 pkg/config/client_test.go (+28 -7)
📝 pkg/config/proxy.go (+48 -0)
📝 pkg/config/proxy_test.go (+22 -7)
📝 pkg/config/types.go (+3 -0)
📝 pkg/msg/msg.go (+12 -8)
📝 server/proxy/http.go (+13 -0)
📝 server/proxy/https.go (+6 -0)

...and 7 more files

📄 Description

Allow setting the proxy bandwidth_limit from a server plugin.

Fixes: #3085


🔄 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/3271 **Author:** [@cbodonnell](https://github.com/cbodonnell) **Created:** 1/26/2023 **Status:** ✅ Merged **Merged:** 2/8/2023 **Merged by:** [@fatedier](https://github.com/fatedier) **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (10+) - [`a4ffda8`](https://github.com/fatedier/frp/commit/a4ffda814fdad4cf7419e40e2a7f37036b6c98b9) support bandwidth_limit set by server plugin - [`cb2e1cf`](https://github.com/fatedier/frp/commit/cb2e1cfffa50ff0aaab315a0951755cb46fbf407) Merge branch 'dev' of https://github.com/cbodonnell/frp into dev - [`de7771d`](https://github.com/fatedier/frp/commit/de7771da54a46129da8209a05876006e618da837) limiter at proxy level - [`491ee8a`](https://github.com/fatedier/frp/commit/491ee8a8d54642538be81f1eaa2a5f949fc95510) bandwidth_limit_mode - [`5efa70a`](https://github.com/fatedier/frp/commit/5efa70ae9d121271ecae3e4d863c7dc79454200d) updates tests for bandwidth_limit_mode default - [`7ec3149`](https://github.com/fatedier/frp/commit/7ec3149a5b7f167c5d6675acced6a837e887b3a7) bandwidth_limit_mode as string - [`99a83f3`](https://github.com/fatedier/frp/commit/99a83f33322382a32fd5bdeadf29e6eae68e7eb1) add checkForSrv for bandwidth_limit_mode - [`2610994`](https://github.com/fatedier/frp/commit/2610994c8528bb03838d30d296ec505a2f05179b) Merge branch 'fatedier:dev' into dev - [`013092e`](https://github.com/fatedier/frp/commit/013092e9bd0acbf3c159ccca56655a0c3995f59d) bandwidth_limit flags for sub cmds - [`916df56`](https://github.com/fatedier/frp/commit/916df56951e6d7b0405f7af071c09f877a9f793f) gci write ### 📊 Changes **27 files changed** (+284 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+3 -0) 📝 `client/proxy/proxy.go` (+1 -1) 📝 `cmd/frpc/sub/http.go` (+8 -0) 📝 `cmd/frpc/sub/https.go` (+8 -0) 📝 `cmd/frpc/sub/root.go` (+20 -18) 📝 `cmd/frpc/sub/stcp.go` (+8 -0) 📝 `cmd/frpc/sub/sudp.go` (+8 -0) 📝 `cmd/frpc/sub/tcp.go` (+8 -0) 📝 `cmd/frpc/sub/tcpmux.go` (+8 -0) 📝 `cmd/frpc/sub/udp.go` (+8 -0) 📝 `cmd/frpc/sub/xtcp.go` (+8 -0) 📝 `conf/frpc_full.ini` (+2 -0) 📝 `doc/server_plugin.md` (+2 -0) 📝 `pkg/config/client_test.go` (+28 -7) 📝 `pkg/config/proxy.go` (+48 -0) 📝 `pkg/config/proxy_test.go` (+22 -7) 📝 `pkg/config/types.go` (+3 -0) 📝 `pkg/msg/msg.go` (+12 -8) 📝 `server/proxy/http.go` (+13 -0) 📝 `server/proxy/https.go` (+6 -0) _...and 7 more files_ </details> ### 📄 Description Allow setting the proxy `bandwidth_limit` from a server plugin. Fixes: #3085 --- <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:15 -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#4709
No description provided.