mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-01-09 18:59:06 +08:00
fix: websocket headroom
This commit is contained in:
parent
71a8982768
commit
63510ea0cf
@ -301,6 +301,10 @@ func (wsedc *websocketWithEarlyDataConn) SetWriteDeadline(t time.Time) error {
|
||||
return wsedc.Conn.SetWriteDeadline(t)
|
||||
}
|
||||
|
||||
func (wsedc *websocketWithEarlyDataConn) LazyHeadroom() bool {
|
||||
return wsedc.Conn == nil
|
||||
}
|
||||
|
||||
func (wsedc *websocketWithEarlyDataConn) Upstream() any {
|
||||
return wsedc.Conn
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user