aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/dnsserver/register.go2
-rw-r--r--core/dnsserver/zdirectives.go3
-rw-r--r--directives_generate.go3
3 files changed, 3 insertions, 5 deletions
diff --git a/core/dnsserver/register.go b/core/dnsserver/register.go
index e3fd19c75..44300d691 100644
--- a/core/dnsserver/register.go
+++ b/core/dnsserver/register.go
@@ -22,7 +22,7 @@ func init() {
flag.StringVar(&Port, serverType+".port", DefaultPort, "Default port")
caddy.RegisterServerType(serverType, caddy.ServerType{
- Directives: func() []string { return directives },
+ Directives: func() []string { return Directives },
DefaultInput: func() caddy.Input {
return caddy.CaddyfileInput{
Filepath: "Corefile",
diff --git a/core/dnsserver/zdirectives.go b/core/dnsserver/zdirectives.go
index d7874f17b..6af3639ed 100644
--- a/core/dnsserver/zdirectives.go
+++ b/core/dnsserver/zdirectives.go
@@ -9,8 +9,7 @@ package dnsserver
// feel the effects of all other plugin below
// (after) them during a request, but they must not
// care what plugin above them are doing.
-
-var directives = []string{
+var Directives = []string{
"tls",
"nsid",
"root",
diff --git a/directives_generate.go b/directives_generate.go
index b67e6dea5..ece92e329 100644
--- a/directives_generate.go
+++ b/directives_generate.go
@@ -81,8 +81,7 @@ func genDirectives(file, pack string, md []string) {
// feel the effects of all other plugin below
// (after) them during a request, but they must not
// care what plugin above them are doing.
-
-var directives = []string{
+var Directives = []string{
`
for i := range md {