Skip to content

Commit

Permalink
fix: give aprotocol explicitly based on DNS type of request
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBrunner committed Aug 31, 2022
1 parent 44c5b8f commit 41d7d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func avahiToRecord(logger *logrus.Entry, aserver *avahi.Server, name string, pro
"type": recordType,
"protocol": proto,
}).Info("forwarding query to avahi")
hn, err := aserver.ResolveHostName(avahi.InterfaceUnspec, proto, name, avahi.ProtoUnspec, 0)
hn, err := aserver.ResolveHostName(avahi.InterfaceUnspec, proto, name, proto, 0)
if err != nil {
return nil, fmt.Errorf("avahi resolve failure: %w", err)
}
Expand Down

0 comments on commit 41d7d38

Please sign in to comment.