Start coredns on launch before we serve HTTP -- this checks if port is available
This commit is contained in:
parent
33fbccf0ba
commit
0ce40fd46e
5
app.go
5
app.go
@ -122,6 +122,11 @@ func main() {
|
|||||||
http.Handle("/", http.FileServer(box))
|
http.Handle("/", http.FileServer(box))
|
||||||
registerControlHandlers()
|
registerControlHandlers()
|
||||||
|
|
||||||
|
err = startDNSServer()
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
URL := fmt.Sprintf("http://%s", address)
|
URL := fmt.Sprintf("http://%s", address)
|
||||||
log.Println("Go to " + URL)
|
log.Println("Go to " + URL)
|
||||||
log.Fatal(http.ListenAndServe(address, nil))
|
log.Fatal(http.ListenAndServe(address, nil))
|
||||||
|
Loading…
Reference in New Issue
Block a user