mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-03-14 22:48:35 +03:00
single binary -- coredns also tries to parse arguments, it kills itself on unknown flags
This commit is contained in:
parent
7ff89baf45
commit
ac6e0add31
1 changed files with 5 additions and 0 deletions
5
app.go
5
app.go
|
@ -109,6 +109,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)
|
||||
|
|
Loading…
Add table
Reference in a new issue