mirror of https://github.com/namecoin/ncdns
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
420 B
Go
18 lines
420 B
Go
package main
|
|
import "github.com/hlandau/degoutils/config"
|
|
import "github.com/hlandau/degoutils/log"
|
|
import "github.com/hlandau/ncdns/server"
|
|
|
|
func main() {
|
|
cfg := server.ServerConfig{}
|
|
config := config.Configurator{
|
|
ProgramName: "ncdns",
|
|
ConfigFilePaths: []string { "etc/ncdns.conf", "/etc/ncdns/ncdns.conf", },
|
|
}
|
|
config.ParseFatal(&cfg)
|
|
s, err := server.NewServer(&cfg)
|
|
log.Fatale(err)
|
|
|
|
s.Run()
|
|
}
|