aboutsummaryrefslogtreecommitdiff
path: root/environment.go
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-05-22 22:28:38 +0700
committerShulhan <m.shulhan@gmail.com>2020-07-26 03:48:51 +0700
commitda54844eeaa0b267d7b8c4a0732fe634ca424d45 (patch)
tree9e7c1aa695a0a8768bb57cec8416890f4f055473 /environment.go
parent03ab6a462ddbd7589ac385a219f035ca7975f856 (diff)
downloadrescached-da54844eeaa0b267d7b8c4a0732fe634ca424d45.tar.xz
all: make host and master directory static
Previously, user can change the location where the hosts files and master file using "rescached::dir.host" and "rescached::dir.master" options. This change disallow chaning both options and make them static.
Diffstat (limited to 'environment.go')
-rw-r--r--environment.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/environment.go b/environment.go
index 2cbe0e6..1dfe834 100644
--- a/environment.go
+++ b/environment.go
@@ -40,6 +40,9 @@ const (
keyTLSCertificate = "tls.certificate"
keyTLSPort = "tls.port"
keyTLSPrivateKey = "tls.private_key"
+
+ dirHosts = "/etc/rescached/hosts.d"
+ dirMaster = "/etc/rescached/master.d"
)
//
@@ -48,8 +51,6 @@ const (
type environment struct {
dns.ServerOptions
WuiListen string `ini:"rescached::wui.listen"`
- DirHosts string `ini:"rescached::dir.hosts"`
- DirMaster string `ini:"rescached::dir.master"`
FileResolvConf string `ini:"rescached::file.resolvconf"`
Debug int `ini:"rescached::debug"`
}