diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-05-22 22:28:38 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-07-26 03:48:51 +0700 |
| commit | da54844eeaa0b267d7b8c4a0732fe634ca424d45 (patch) | |
| tree | 9e7c1aa695a0a8768bb57cec8416890f4f055473 /environment.go | |
| parent | 03ab6a462ddbd7589ac385a219f035ca7975f856 (diff) | |
| download | rescached-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.go | 5 |
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"` } |
