mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-02-16 18:09:47 +03:00
Start coredns on launch before we serve HTTP -- this checks if port is available
This commit is contained in:
parent
33fbccf0ba
commit
0ce40fd46e
1 changed files with 5 additions and 0 deletions
5
app.go
5
app.go
|
@ -122,6 +122,11 @@ func main() {
|
|||
http.Handle("/", http.FileServer(box))
|
||||
registerControlHandlers()
|
||||
|
||||
err = startDNSServer()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
URL := fmt.Sprintf("http://%s", address)
|
||||
log.Println("Go to " + URL)
|
||||
log.Fatal(http.ListenAndServe(address, nil))
|
||||
|
|
Loading…
Add table
Reference in a new issue