mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-01-15 21:38:11 +00:00
all: add ignored_enabled field to config modifier
Some checks failed
build / test (macOS-latest) (push) Has been cancelled
build / test (ubuntu-latest) (push) Has been cancelled
build / test (windows-latest) (push) Has been cancelled
build / build-release (push) Has been cancelled
build / notify (push) Has been cancelled
lint / go-lint (push) Has been cancelled
lint / eslint (push) Has been cancelled
lint / notify (push) Has been cancelled
Some checks failed
build / test (macOS-latest) (push) Has been cancelled
build / test (ubuntu-latest) (push) Has been cancelled
build / test (windows-latest) (push) Has been cancelled
build / build-release (push) Has been cancelled
build / notify (push) Has been cancelled
lint / go-lint (push) Has been cancelled
lint / eslint (push) Has been cancelled
lint / notify (push) Has been cancelled
This commit is contained in:
@@ -877,6 +877,7 @@ func (c *configuration) write(
|
||||
config.Stats.Interval = timeutil.Duration(statsConf.Limit)
|
||||
config.Stats.Enabled = statsConf.Enabled
|
||||
config.Stats.Ignored = statsConf.Ignored.Values()
|
||||
config.Stats.IgnoredEnabled = statsConf.IgnoredEnabled
|
||||
}
|
||||
|
||||
if globalContext.queryLog != nil {
|
||||
@@ -888,6 +889,7 @@ func (c *configuration) write(
|
||||
config.QueryLog.Interval = timeutil.Duration(dc.RotationIvl)
|
||||
config.QueryLog.MemSize = dc.MemSize
|
||||
config.QueryLog.Ignored = dc.Ignored.Values()
|
||||
config.QueryLog.IgnoredEnabled = dc.IgnoredEnabled
|
||||
}
|
||||
|
||||
if globalContext.filters != nil {
|
||||
|
||||
@@ -312,6 +312,7 @@ func (s *StatsCtx) WriteDiskConfig(dc *Config) {
|
||||
dc.Ignored = s.ignored
|
||||
dc.Limit = s.limit
|
||||
dc.Enabled = s.enabled
|
||||
dc.IgnoredEnabled = s.ignoredEnabled
|
||||
}
|
||||
|
||||
// TopClientsIP implements the [Interface] interface for *StatsCtx.
|
||||
|
||||
Reference in New Issue
Block a user