Fix websocket headroom

This commit is contained in:
世界
2022-10-08 20:09:36 +08:00
parent 89ff9f8368
commit a01bb569d1
5 changed files with 19 additions and 10 deletions
+1 -3
View File
@@ -10,8 +10,6 @@ import (
"github.com/sagernet/websocket"
)
const frontHeadroom = 14
type Writer struct {
*websocket.Conn
writer N.ExtendedWriter
@@ -85,5 +83,5 @@ func (w *Writer) Upstream() any {
}
func (w *Writer) FrontHeadroom() int {
return frontHeadroom
return 14
}