also down iface on shutdown
This commit is contained in:
parent
856150866e
commit
c1a3cc33f4
3
main.go
3
main.go
|
@ -74,6 +74,9 @@ func main() {
|
||||||
if err := writeToEtcHosts(nil); err != nil {
|
if err := writeToEtcHosts(nil); err != nil {
|
||||||
logrus.Errorf("could not remove stale hosts entries: %s", err)
|
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)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue