diff options
Diffstat (limited to 'plugin/file/zone.go')
-rw-r--r-- | plugin/file/zone.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugin/file/zone.go b/plugin/file/zone.go index d3adca29e..9a12ca69f 100644 --- a/plugin/file/zone.go +++ b/plugin/file/zone.go @@ -22,7 +22,7 @@ type Zone struct { file string *tree.Tree Apex - Expired *bool + Expired bool sync.RWMutex @@ -46,16 +46,13 @@ type Apex struct { // NewZone returns a new zone. func NewZone(name, file string) *Zone { - z := &Zone{ + return &Zone{ origin: dns.Fqdn(name), origLen: dns.CountLabel(dns.Fqdn(name)), file: filepath.Clean(file), Tree: &tree.Tree{}, - Expired: new(bool), reloadShutdown: make(chan bool), } - *z.Expired = false - return z } // Copy copies a zone. |