| skipped 36 lines |
37 | 37 | | flag.StringVar(&key.TCPReceiveBufferSize, "tcp-rcvbuf", "", "Set TCP receive buffer size for netstack") |
38 | 38 | | flag.StringVar(&key.UDPRelayBufferSize, "udp-rlybuf", "", "Set UDP relay buffer size for tunnel") |
39 | 39 | | flag.BoolVar(&key.TCPModerateReceiveBuffer, "tcp-auto-tuning", false, "Enable TCP receive buffer auto-tuning") |
| 40 | + | flag.DurationVar(&key.TCPWaitTimeout, "tcp-wait-timeout", 0, "Set timeout before closing each TCP connection") |
40 | 41 | | flag.StringVar(&key.TUNPreUp, "tun-pre-up", "", "Execute a command before TUN device setup") |
41 | 42 | | flag.StringVar(&key.TUNPostUp, "tun-post-up", "", "Execute a command after TUN device setup") |
42 | 43 | | flag.BoolVar(&versionFlag, "version", false, "Show version and then quit") |
| skipped 32 lines |