mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-04 10:24:40 +01:00
Simplify hasAAAAQuestion
This commit is contained in:
parent
b02649f774
commit
b460ca9fa8
1 changed files with 1 additions and 6 deletions
|
@ -135,12 +135,7 @@ func (plugin *PluginDNS64) Eval(pluginsState *PluginsState, msg *dns.Msg) error
|
|||
}
|
||||
|
||||
func hasAAAAQuestion(msg *dns.Msg) bool {
|
||||
for _, question := range msg.Question {
|
||||
if question.Qtype == dns.TypeAAAA {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
return msg.Question[0].Qtype == dns.TypeAAAA
|
||||
}
|
||||
|
||||
func hasAAAAAnswer(msg *dns.Msg) bool {
|
||||
|
|
Loading…
Add table
Reference in a new issue