From 3a401a79426c303a95050be86f0da61392680a8a Mon Sep 17 00:00:00 2001 From: Leo Antunes Date: Mon, 29 Jul 2019 19:20:53 +0200 Subject: [PATCH] try some cleanup if iface setup failed --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 526ada3..31c6168 100644 --- a/main.go +++ b/main.go @@ -55,6 +55,7 @@ func main() { } if err := wg.setUpInterface(nodes); err != nil { logrus.Errorf("could not up interface: %s", err) + wg.downInterface() } if !config.NoEtcHosts { if err := writeToEtcHosts(nodes); err != nil {