mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-08 18:20:41 +08:00
Revert: udp-rlybuf option
As a low-level networking tool, tun2socks should be able to handle UDP packets of all possible sizes. This reverts commit fb9ca95909
.
This commit is contained in:
@@ -133,14 +133,6 @@ func general(k *Key) error {
|
||||
}
|
||||
tunnel.SetUDPTimeout(k.UDPTimeout)
|
||||
}
|
||||
|
||||
if k.UDPRelayBufferSize != "" {
|
||||
size, err := units.RAMInBytes(k.UDPRelayBufferSize)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
tunnel.SetUDPRelayBufferSize(int(size))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user