Merge pull request #76 in DNS/adguard-dns from single_binary to master

* commit '880ad362a849cc53729128b614a4d4cc1d696750':
  Makefile -- use variable for target binary
  coredns plugin -- remove debug logging
  single binary -- coredns also tries to parse arguments, it kills itself on unknown flags
  Update makefile to build only one binary instead of two
  WIP -- single binary -- works, replies to DNS, but need to check what got broken
This commit is contained in:
Andrey Meshkov
2018-10-12 19:58:33 +03:00
8 changed files with 183 additions and 189 deletions

5
app.go
View File

@@ -117,6 +117,11 @@ func main() {
}
}
// eat all args so that coredns can start happily
if len(os.Args) > 1 {
os.Args = os.Args[:1]
}
err := writeConfig()
if err != nil {
log.Fatal(err)