mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-23 00:17:10 +08:00
Merge branch 'release-v1.5.1' into v1.5.1/post-fixes
This commit is contained in:
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user