aboutsummaryrefslogtreecommitdiff
path: root/environment.go
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-07-25 02:39:33 +0700
committerShulhan <m.shulhan@gmail.com>2020-07-26 03:48:51 +0700
commit954a8f071deff27d0434027e4787e72fbd7880d4 (patch)
tree9c77cef7ba8edcaaee18b5b629ffae29ce04015c /environment.go
parent53918e8b3fc8a68f7f88e6ece0706e1ae049a8e5 (diff)
downloadrescached-954a8f071deff27d0434027e4787e72fbd7880d4.tar.xz
all: implement UI to create, update, delete hosts file in hosts.d
The UI will update (insert or remove) the records on cache on the fly.
Diffstat (limited to 'environment.go')
-rw-r--r--environment.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/environment.go b/environment.go
index a998884..34cb665 100644
--- a/environment.go
+++ b/environment.go
@@ -59,6 +59,7 @@ type environment struct {
Debug int `ini:"rescached::debug"`
HostsBlocksRaw []string `ini:"rescached::hosts_block" json:"-"`
HostsBlocks []*hostsBlock
+ HostsFiles []*hostsFile
}
func loadEnvironment(file string) (env *environment) {