Use *dns.Server (#99)

This does not fix the reload issue, but will give us flexibility
to access the packetConn and listener to make this all work.
This commit is contained in:
Miek Gieben
2016-04-09 22:53:39 +01:00
parent 49f994fa80
commit db98cd4e4b
2 changed files with 13 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ func trapSignalsPosix() {
caddyfileMu.Lock()
if caddyfile == nil {
// Hmm, did spawing process forget to close stdin? Anyhow, this is unusual.
log.Println("[ERROR] SIGUSR1: no Caddyfile to reload (was stdin left open?)")
log.Println("[ERROR] SIGUSR1: no Corefile to reload (was stdin left open?)")
caddyfileMu.Unlock()
continue
}