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:
xjasonlyu
2023-04-03 12:24:07 +08:00
parent b8ff1859c1
commit b809f89411
5 changed files with 3 additions and 23 deletions

View File

@@ -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
}