try some cleanup if iface setup failed
This commit is contained in:
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 {
|
||||||
|
Reference in New Issue
Block a user