Clear firewall rules on shutdown, fix #276

This commit is contained in:
Quentin McGaw
2021-04-19 14:27:38 +00:00
parent 7ba98af1cc
commit 282c1e53ec
2 changed files with 9 additions and 1 deletions

View File

@@ -317,6 +317,14 @@ func _main(ctx context.Context, buildInfo models.BuildInformation,
}
}
if allSettings.Firewall.Enabled {
const enable = false
err := firewallConf.SetEnabled(context.Background(), enable)
if err != nil {
logger.Error(err)
}
}
wg.Wait()
return nil