mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-25 17:43:38 +01:00
update rules count
This commit is contained in:
parent
6fd13f563e
commit
fe596c38c6
@ -195,13 +195,13 @@ func (w *Worker) generateProperties() properties {
|
||||
expirationEnabled++
|
||||
}
|
||||
|
||||
rules = rules + len(account.Rules)
|
||||
groups = groups + len(account.Groups)
|
||||
routes = routes + len(account.Routes)
|
||||
nameservers = nameservers + len(account.NameServerGroups)
|
||||
|
||||
for _, policy := range account.Policies {
|
||||
for _, rule := range policy.Rules {
|
||||
rules++
|
||||
rulesProtocol[string(rule.Protocol)]++
|
||||
if rule.Bidirectional {
|
||||
rulesDirection["bidirectional"]++
|
||||
|
Loading…
Reference in New Issue
Block a user