mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-03 11:57:39 +03:00
Fix socks5 UDP handshake
This commit is contained in:
parent
442cceb9fa
commit
33beacc053
1 changed files with 1 additions and 0 deletions
|
@ -219,6 +219,7 @@ func HandleConnectionEx(
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
handler.NewPacketConnectionEx(ctx, NewLazyAssociatePacketConn(bufio.NewServerPacketConn(udpConn), conn), source, M.Socksaddr{}, onClose)
|
handler.NewPacketConnectionEx(ctx, NewLazyAssociatePacketConn(bufio.NewServerPacketConn(udpConn), conn), source, M.Socksaddr{}, onClose)
|
||||||
|
return nil
|
||||||
default:
|
default:
|
||||||
err = socks5.WriteResponse(conn, socks5.Response{
|
err = socks5.WriteResponse(conn, socks5.Response{
|
||||||
ReplyCode: socks5.ReplyCodeUnsupported,
|
ReplyCode: socks5.ReplyCodeUnsupported,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue