Add a simple built-in DNS client for testing

This commit is contained in:
Frank Denis 2018-01-21 18:02:32 +01:00
parent d9b5625226
commit 05e07e8b69
3 changed files with 67 additions and 1 deletions

View file

@ -60,7 +60,6 @@ type App struct {
func main() {
dlog.Init("dnscrypt-proxy", dlog.SeverityNotice, "DAEMON")
dlog.Noticef("Starting dnscrypt-proxy %s", AppVersion)
cdLocal()
@ -80,6 +79,8 @@ func main() {
if err := ConfigLoad(&app.proxy, svcFlag, "dnscrypt-proxy.toml"); err != nil {
dlog.Fatal(err)
}
dlog.Noticef("Starting dnscrypt-proxy %s", AppVersion)
if len(*svcFlag) != 0 {
if err := service.Control(svc, *svcFlag); err != nil {
dlog.Fatal(err)