chore: add WaitReadFrom support in ssr
This commit is contained in:
@ -3,6 +3,8 @@ package protocol
|
||||
import (
|
||||
"bytes"
|
||||
"net"
|
||||
|
||||
N "github.com/Dreamacro/clash/common/net"
|
||||
)
|
||||
|
||||
type origin struct{}
|
||||
@ -13,7 +15,7 @@ func newOrigin(b *Base) Protocol { return &origin{} }
|
||||
|
||||
func (o *origin) StreamConn(c net.Conn, iv []byte) net.Conn { return c }
|
||||
|
||||
func (o *origin) PacketConn(c net.PacketConn) net.PacketConn { return c }
|
||||
func (o *origin) PacketConn(c N.EnhancePacketConn) N.EnhancePacketConn { return c }
|
||||
|
||||
func (o *origin) Decode(dst, src *bytes.Buffer) error {
|
||||
dst.ReadFrom(src)
|
||||
|
Reference in New Issue
Block a user