mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
fix invalid reload when multiple file plugins (#5020)
Signed-off-by: crliu3227 <liucongran327@163.com>
This commit is contained in:
@@ -126,11 +126,11 @@ func fileParse(c *caddy.Controller) (Zones, error) {
|
||||
return Zones{}, c.Errf("unknown property '%s'", c.Val())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for origin := range z {
|
||||
z[origin].ReloadInterval = reload
|
||||
z[origin].Upstream = upstream.New()
|
||||
for i := range origins {
|
||||
z[origins[i]].ReloadInterval = reload
|
||||
z[origins[i]].Upstream = upstream.New()
|
||||
}
|
||||
}
|
||||
|
||||
if openErr != nil {
|
||||
|
||||
Reference in New Issue
Block a user