server: validate control pool counts (#5459)

This commit is contained in:
fatedier
2026-07-30 23:30:16 +08:00
committed by GitHub
parent 9d45a55720
commit 1ab59e763c
7 changed files with 174 additions and 5 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
## Features
## Fixes
* Ordinary UDP proxy payloads now use a dedicated binary codec when frpc and frps successfully negotiate the capability under wire protocol v2, reducing frame size and encoding/decoding overhead. Wire protocol v1 and SUDP remain unchanged; wire protocol v2 falls back to JSON `UDPPacket` when the peer does not support or did not negotiate the capability.
* Fixed a server panic and remote denial of service caused by a client sending a negative `pool_count`. Negative values are now rejected before work-connection pool resources are allocated.