also down iface on shutdown

This commit is contained in:
Leo Antunes 2019-03-27 22:52:34 +01:00
parent 856150866e
commit c1a3cc33f4
1 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,9 @@ func main() {
if err := writeToEtcHosts(nil); err != nil {
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)
}
}