Change: keep firewall on shutdown to avoid leaks
This commit is contained in:
@@ -337,20 +337,7 @@ func _main(ctx context.Context, buildInfo models.BuildInformation,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := shutdownOrder.Shutdown(shutdownMaxTimeout, logger); err != nil {
|
return shutdownOrder.Shutdown(shutdownMaxTimeout, logger)
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Only disable firewall if everything has shutdown gracefully
|
|
||||||
if allSettings.Firewall.Enabled {
|
|
||||||
const enable = false
|
|
||||||
err := firewallConf.SetEnabled(context.Background(), enable)
|
|
||||||
if err != nil {
|
|
||||||
logger.Error(err)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func printVersions(ctx context.Context, logger logging.Logger,
|
func printVersions(ctx context.Context, logger logging.Logger,
|
||||||
|
|||||||
Reference in New Issue
Block a user