Fix socks5 UDP handshake

This commit is contained in:
世界 2024-12-14 18:16:15 +08:00
parent 442cceb9fa
commit 33beacc053
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -219,6 +219,7 @@ func HandleConnectionEx(
return err
}
handler.NewPacketConnectionEx(ctx, NewLazyAssociatePacketConn(bufio.NewServerPacketConn(udpConn), conn), source, M.Socksaddr{}, onClose)
return nil
default:
err = socks5.WriteResponse(conn, socks5.Response{
ReplyCode: socks5.ReplyCodeUnsupported,