aboutsummaryrefslogtreecommitdiff
path: root/environment.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-02-04 15:06:34 +0700
committerShulhan <ms@kilabit.info>2024-02-04 15:06:46 +0700
commit1b8a3151bbb15322bd22bbff841803c6bc9cd7d0 (patch)
treec1ce99d16a6e2181312e65fe81570cde2d17fe5c /environment.go
parent023c92c594cb928e0c5f8217ba5599daf82e93e0 (diff)
downloadrescached-1b8a3151bbb15322bd22bbff841803c6bc9cd7d0.tar.xz
all: apply recommendation from linter revive
Diffstat (limited to 'environment.go')
-rw-r--r--environment.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/environment.go b/environment.go
index 1068ea9..1a0aef5 100644
--- a/environment.go
+++ b/environment.go
@@ -34,7 +34,7 @@ const (
keyDebug = "debug"
keyFileResolvConf = "file.resolvconf"
keyName = "name"
- keyUrl = "url"
+ keyURL = `url`
keyCachePruneDelay = "cache.prune_delay"
keyCachePruneThreshold = "cache.prune_threshold"
@@ -248,7 +248,7 @@ func (env *Environment) save(file string) (in *ini.Ini, err error) {
for _, hb = range env.HostBlockd {
in.Set(sectionNameBlockd, hb.Name, keyName, hb.Name)
- in.Set(sectionNameBlockd, hb.Name, keyUrl, hb.URL)
+ in.Set(sectionNameBlockd, hb.Name, keyURL, hb.URL)
}
in.UnsetAll(sectionNameDNS, subNameServer, keyParent)