• Zhipeng JIANG's avatar
    Fix files reload failure within a single root zone. (#337) · 2eafe3ee
    Zhipeng JIANG authored
    In the file middleware, if there are multiple zone files under a single root zone, watchers are only invoked on the last element of `zones.Names`. This is caused by loop override on the variable `n`.
    
    This issue can be fixed by passing zone object, which calls reload watcher directly.
    2eafe3ee
setup.go 3.38 KB