Fix websocket headroom

This commit is contained in:
世界
2022-10-07 20:18:50 +08:00
parent 89ff9f8368
commit a01bb569d1
5 changed files with 19 additions and 10 deletions

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
}