Feature: add udp-rlybuf option

* Default UDP relay buffer size: 16KiB
This commit is contained in:
xjasonlyu
2023-03-29 16:56:03 +08:00
parent 1e99f2d580
commit fb9ca95909
6 changed files with 28 additions and 7 deletions

View File

@@ -13,7 +13,8 @@ type Key struct {
TCPModerateReceiveBuffer bool `yaml:"tcp-moderate-receive-buffer"`
TCPSendBufferSize string `yaml:"tcp-send-buffer-size"`
TCPReceiveBufferSize string `yaml:"tcp-receive-buffer-size"`
UDPRelayBufferSize string `yaml:"udp-relay-buffer-size"`
UDPTimeout time.Duration `yaml:"udp-timeout"`
TUNPreUp string `yaml:"tun-pre-up"`
TUNPostUp string `yaml:"tun-post-up"`
UDPTimeout time.Duration `yaml:"udp-timeout"`
}