From 9b213fb1cdfd08b3156b4cea5a85a8d3ab7d310e Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Mon, 13 May 2019 21:12:15 +0200 Subject: [PATCH] fix values by zones --- respond/daemon/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/respond/daemon/config.go b/respond/daemon/config.go index fa4b7f96..3948fb96 100644 --- a/respond/daemon/config.go +++ b/respond/daemon/config.go @@ -41,7 +41,7 @@ type AnswerConfig struct { func (d *Daemon) getAnswer(iface string) (*AnswerConfig, string) { config := d.Answer - if v, ok := d.AnswerByZones[iface]; iface == "" && ok { + if v, ok := d.AnswerByZones[iface]; iface != "" && ok { config = v }