From c1a3cc33f4ae7b9a478a5072f400ccc1e3f78269 Mon Sep 17 00:00:00 2001 From: Leo Antunes Date: Wed, 27 Mar 2019 22:52:34 +0100 Subject: [PATCH] also down iface on shutdown --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 303c095..a58be3a 100644 --- a/main.go +++ b/main.go @@ -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) } }