mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -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())
|
return Zones{}, c.Errf("unknown property '%s'", c.Val())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
for origin := range z {
|
for i := range origins {
|
||||||
z[origin].ReloadInterval = reload
|
z[origins[i]].ReloadInterval = reload
|
||||||
z[origin].Upstream = upstream.New()
|
z[origins[i]].Upstream = upstream.New()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if openErr != nil {
|
if openErr != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user