Fix wait copy packet

This commit is contained in:
世界
2023-04-28 11:21:36 +08:00
parent 841ef1acaf
commit d2d3c82ccf
3 changed files with 5 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ import (
"io"
"net"
"github.com/sagernet/sing/common/bufio"
"github.com/sagernet/sing/common/x/list"
)
@@ -42,7 +43,7 @@ func (c *PacketConn) Close() error {
}
func (c *PacketConn) Upstream() any {
return c.PacketConn
return bufio.NewPacketConn(c.PacketConn)
}
func (c *PacketConn) ReaderReplaceable() bool {