mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 10:13:14 -05:00
core: block CH queries earlier (#973)
block chaos queries, unless the chaos or proxy middleware is loaded. We respond with REFUSED. This removes the need for each middleware to do this class != ClassINET if-then. Also make config.Registry non-public.
This commit is contained in:
@@ -42,7 +42,7 @@ type Config struct {
|
||||
// Middleware interested in announcing that they exist, so other middleware can call methods
|
||||
// on them should register themselves here. The name should be the name as return by the
|
||||
// Handler's Name method.
|
||||
Registry map[string]middleware.Handler
|
||||
registry map[string]middleware.Handler
|
||||
}
|
||||
|
||||
// GetConfig gets the Config that corresponds to c.
|
||||
|
||||
Reference in New Issue
Block a user