- /stats_config: write config

This commit is contained in:
Simon Zolin 2019-09-10 13:52:19 +03:00
parent 97684368b9
commit 8a2aa57e24
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ func handleStatsConfig(w http.ResponseWriter, r *http.Request) {
}
config.DNS.StatsInterval = reqData.Interval
_ = config.write()
config.stats.Configure(int(config.DNS.StatsInterval))
returnOK(w)