try some cleanup if iface setup failed
This commit is contained in:
parent
c6e052c78f
commit
3a401a7942
1
main.go
1
main.go
|
@ -55,6 +55,7 @@ func main() {
|
||||||
}
|
}
|
||||||
if err := wg.setUpInterface(nodes); err != nil {
|
if err := wg.setUpInterface(nodes); err != nil {
|
||||||
logrus.Errorf("could not up interface: %s", err)
|
logrus.Errorf("could not up interface: %s", err)
|
||||||
|
wg.downInterface()
|
||||||
}
|
}
|
||||||
if !config.NoEtcHosts {
|
if !config.NoEtcHosts {
|
||||||
if err := writeToEtcHosts(nodes); err != nil {
|
if err := writeToEtcHosts(nodes); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue