Update dependencies

This commit is contained in:
世界
2023-08-22 12:48:26 +08:00
parent 262842c87d
commit edad4d1ce7
5 changed files with 43 additions and 43 deletions

View File

@@ -259,7 +259,7 @@ func (c *udpPacketConn) WriteTo(p []byte, addr net.Addr) (n int, err error) {
destination: M.SocksaddrFromNet(addr),
data: buf.As(p),
}
if c.udpMTU > 0 && len(p) > c.udpMTU {
if !c.udpStream && c.needFragment() && len(p) > c.udpMTU {
err = c.writePackets(fragUDPMessage(message, c.udpMTU))
if err == nil {
return len(p), nil