aboutsummaryrefslogtreecommitdiff
path: root/middleware/file/notify.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2016-04-15 14:26:27 +0100
committerGravatar Miek Gieben <miek@miek.nl> 2016-04-15 14:26:27 +0100
commitc9d8a57ed66f8debe72856ec9d12c25f97248f0e (patch)
tree479358a120b6d4450e324c1f564f712e1b29f02d /middleware/file/notify.go
parent29ad957a9da184e6d15c4d61de38f391ec25bdb1 (diff)
downloadcoredns-c9d8a57ed66f8debe72856ec9d12c25f97248f0e.tar.gz
coredns-c9d8a57ed66f8debe72856ec9d12c25f97248f0e.tar.zst
coredns-c9d8a57ed66f8debe72856ec9d12c25f97248f0e.zip
Reload zone when a write is detected (#122)
Zone reloading
Diffstat (limited to 'middleware/file/notify.go')
-rw-r--r--middleware/file/notify.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/file/notify.go b/middleware/file/notify.go
index b369f6ad1..8a2581b84 100644
--- a/middleware/file/notify.go
+++ b/middleware/file/notify.go
@@ -30,7 +30,7 @@ func (z *Zone) isNotify(state middleware.State) bool {
// Notify will send notifies to all configured TransferTo IP addresses.
func (z *Zone) Notify() {
- go notify(z.name, z.TransferTo)
+ go notify(z.origin, z.TransferTo)
}
// notify sends notifies to the configured remote servers. It will try up to three times