Skip to content

Commit

Permalink
fix values by zones
Browse files Browse the repository at this point in the history
  • Loading branch information
genofire committed May 13, 2019
1 parent 52bc5ed commit 9b213fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion respond/daemon/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 9b213fb

Please sign in to comment.