Close tun fd when bringing down tunnel
This commit is contained in:
		
							parent
							
								
									519c5d200a
								
							
						
					
					
						commit
						09de7d1342
					
				@ -283,7 +283,7 @@ func (tun *NativeTun) Events() chan TUNEvent {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (tun *NativeTun) Close() error {
 | 
			
		||||
	return nil
 | 
			
		||||
	return tun.fd.Close()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func CreateTUNFromFile(name string, fd *os.File) (TUNDevice, error) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user