Add shadowsocks 2022 relay service

This commit is contained in:
世界 2022-06-19 22:17:23 +08:00
parent a1c3aed9d3
commit ba4ce4c24f
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
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,