Merge branch 'release-v1.5.1' into v1.5.1/post-fixes

This commit is contained in:
Abhishek Kondur
2026-04-08 11:56:58 +05:30
committed by GitHub
5 changed files with 66 additions and 45 deletions
+2 -1
View File
@@ -336,7 +336,8 @@ func reInit(curr, new models.ServerSettings, force bool) {
// On force AutoUpdate change, change AutoUpdate for all hosts.
// On force FlowLogs enable, enable FlowLogs for all hosts.
// On FlowLogs disable, forced or not, disable FlowLogs for all hosts.
if force || !new.EnableFlowLogs {
// On NetclientAutoUpdate disable, forced or not, disable AutoUpdate for all hosts.
if force || !new.EnableFlowLogs || !new.NetclientAutoUpdate {
if curr.NetclientAutoUpdate != new.NetclientAutoUpdate ||
curr.EnableFlowLogs != new.EnableFlowLogs {
hosts, _ := (&schema.Host{}).ListAll(db.WithContext(context.TODO()))