mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
validate object implements the corresponding interface (#3724)
Signed-off-by: zouyee <zounengren@cmss.chinamobile.com>
This commit is contained in:
@@ -52,6 +52,9 @@ func (h *dnsContext) saveConfig(key string, cfg *Config) {
|
||||
h.keysToConfigs[key] = cfg
|
||||
}
|
||||
|
||||
// Compile-time check to ensure dnsContext implements the caddy.Context interface
|
||||
var _ caddy.Context = &dnsContext{}
|
||||
|
||||
// InspectServerBlocks make sure that everything checks out before
|
||||
// executing directives and otherwise prepares the directives to
|
||||
// be parsed and executed.
|
||||
|
||||
Reference in New Issue
Block a user