From 8a2aa57e241c6855b624c16e2a45f7844062b01f Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Tue, 10 Sep 2019 13:52:19 +0300 Subject: [PATCH] - /stats_config: write config --- home/control_stats.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home/control_stats.go b/home/control_stats.go index 710eb577..5adb681a 100644 --- a/home/control_stats.go +++ b/home/control_stats.go @@ -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)