also down iface on shutdown
This commit is contained in:
		
							
								
								
									
										3
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								main.go
									
									
									
									
									
								
							| @@ -74,6 +74,9 @@ func main() { | |||||||
| 			if err := writeToEtcHosts(nil); err != nil { | 			if err := writeToEtcHosts(nil); err != nil { | ||||||
| 				logrus.Errorf("could not remove stale hosts entries: %s", err) | 				logrus.Errorf("could not remove stale hosts entries: %s", err) | ||||||
| 			} | 			} | ||||||
|  | 			if err := wg.downInterface(); err != nil { | ||||||
|  | 				logrus.Errorf("could not down interface: %s", err) | ||||||
|  | 			} | ||||||
| 			os.Exit(0) | 			os.Exit(0) | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Leo Antunes
					Leo Antunes