From e689c7d940e9a20bc13f024e18b86f3c1e5ba759 Mon Sep 17 00:00:00 2001 From: Eugene Bujak Date: Wed, 10 Oct 2018 19:49:18 +0300 Subject: [PATCH] Do not lose filter name when saving to yaml --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 99a6fe9d..6130dff6 100644 --- a/config.go +++ b/config.go @@ -50,7 +50,7 @@ type coreDNSConfig struct { type filter struct { URL string `json:"url"` - Name string `json:"name" yaml:"-"` + Name string `json:"name" yaml:"name"` Enabled bool `json:"enabled"` RulesCount int `json:"rules_count" yaml:"-"` contents []byte