mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 10:13:14 -05:00
Bail out on failure when starting up
Don't silently hide failures, barf on startup. Also add more integration tests that should catch some of these things.
This commit is contained in:
@@ -74,7 +74,7 @@ func (d Dnssec) Sign(state middleware.State, zone string, now time.Time) *dns.Ms
|
||||
for _, r := range rrSets(req.Extra) {
|
||||
ttl := r[0].Header().Ttl
|
||||
if sigs, err := d.sign(r, zone, ttl, incep, expir); err == nil {
|
||||
req.Extra = append(req.Extra, sigs...)
|
||||
req.Extra = append(sigs, req.Extra...) // prepend to leave OPT alone
|
||||
}
|
||||
}
|
||||
return req
|
||||
|
||||
Reference in New Issue
Block a user