mirror of
				https://github.com/xjasonlyu/tun2socks.git
				synced 2025-10-31 12:06:37 +08:00 
			
		
		
		
	Feature: add an option to set udp timeout
This commit is contained in:
		
							
								
								
									
										1
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								main.go
									
									
									
									
									
								
							| @@ -15,6 +15,7 @@ var key = new(engine.Key) | ||||
| func init() { | ||||
| 	flag.IntVar(&key.Mark, "fwmark", 0, "Set firewall MARK (Linux only)") | ||||
| 	flag.IntVar(&key.MTU, "mtu", 0, "Set device maximum transmission unit (MTU)") | ||||
| 	flag.IntVar(&key.UDPTimeout, "udp-timeout", 0, "Set timeout for each UDP session") | ||||
| 	flag.BoolVar(&key.Version, "version", false, "Show version information and quit") | ||||
| 	flag.StringVar(&key.Device, "device", "", "Use this device [driver://]name") | ||||
| 	flag.StringVar(&key.Interface, "interface", "", "Use network INTERFACE (Linux/MacOS only)") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 xjasonlyu
					xjasonlyu