Feature: cli tcp-wait-timeout option (#156)

Co-authored-by: xjasonlyu <xjasonlyu@gmail.com>
This commit is contained in:
Solyn
2023-03-29 17:41:01 +08:00
committed by GitHub
parent fb9ca95909
commit 2c51a65685
4 changed files with 13 additions and 5 deletions

View File

@@ -37,6 +37,7 @@ func init() {
flag.StringVar(&key.TCPReceiveBufferSize, "tcp-rcvbuf", "", "Set TCP receive buffer size for netstack")
flag.StringVar(&key.UDPRelayBufferSize, "udp-rlybuf", "", "Set UDP relay buffer size for tunnel")
flag.BoolVar(&key.TCPModerateReceiveBuffer, "tcp-auto-tuning", false, "Enable TCP receive buffer auto-tuning")
flag.DurationVar(&key.TCPWaitTimeout, "tcp-wait-timeout", 0, "Set timeout before closing each TCP connection")
flag.StringVar(&key.TUNPreUp, "tun-pre-up", "", "Execute a command before TUN device setup")
flag.StringVar(&key.TUNPostUp, "tun-post-up", "", "Execute a command after TUN device setup")
flag.BoolVar(&versionFlag, "version", false, "Show version and then quit")