mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-09-20 10:10:13 +00:00
fix(terminal): bound websocket input frames
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package controller
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestTerminalWebSocketInputLimitAllowsBoundedPaste(t *testing.T) {
|
||||
if terminalWebSocketInputLimit != 512*1024+64 {
|
||||
t.Fatalf("terminal WebSocket input limit = %d, want 512 KiB plus control-byte allowance", terminalWebSocketInputLimit)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user