mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-23 00:17:10 +08:00
Merge pull request #3744 from gravitl/NM-167
NM-167: Auto delete Offline Nodes
This commit is contained in:
@@ -84,6 +84,10 @@ func updateNetworks() {
|
||||
netI.AutoJoin = "true"
|
||||
logic.UpsertNetwork(netI)
|
||||
}
|
||||
if netI.AutoRemove == "" {
|
||||
netI.AutoRemove = "false"
|
||||
logic.UpsertNetwork(netI)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -887,6 +891,9 @@ func migrateSettings() {
|
||||
if settings.PeerConnectionCheckInterval == "" {
|
||||
settings.PeerConnectionCheckInterval = "15"
|
||||
}
|
||||
if settings.CleanUpInterval == 0 {
|
||||
settings.CleanUpInterval = 60
|
||||
}
|
||||
if settings.AuditLogsRetentionPeriodInDays == 0 {
|
||||
settings.AuditLogsRetentionPeriodInDays = 7
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user