0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-14 04:19:36 +03:00

Add shadowsocks 2022 relay service

This commit is contained in:
世界
2022-06-19 22:17:23 +08:00
parent a1c3aed9d3
commit ba4ce4c24f
6 changed files with 452 additions and 54 deletions

View File

@ -141,7 +141,7 @@ func (o *Outbound) Process(ctx context.Context, link *transport.Link, dialer int
if pc, isPacketConn := inboundConn.(N.PacketConn); isPacketConn {
packetConn = pc
} else if nc, isNetPacket := inboundConn.(net.PacketConn); isNetPacket {
packetConn = &bufio.PacketConnWrapper{PacketConn: nc}
packetConn = bufio.NewPacketConn(nc)
} else {
packetConn = &packetConnWrapper{
Reader: link.Reader,