summaryrefslogtreecommitdiff
path: root/coredns.go
blob: e171e9c59cf16b4e38f6d089adf1c18106f0ba73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package main

//go:generate go run directives_generate.go

import (
	"net/http"
	_ "ohmydns/core/plugin" // Plug in CoreDNS.
	"ohmydns/coremain"

	"github.com/arl/statsviz"
)

func main() {
	// Register statsviz handlers on the default serve mux.
	statsviz.RegisterDefault()
	go func() {
		http.ListenAndServe(":6080", nil)
	}()

	coremain.Run()
}