mirror of
https://github.com/status-im/consul.git
synced 2025-02-16 23:57:07 +00:00
Correctly detect that an answer has been truncated
This commit is contained in:
parent
88c42f4056
commit
69696a9c1b
@ -509,7 +509,7 @@ func trimUDPAnswers(config *DNSConfig, resp *dns.Msg) (trimmed bool) {
|
|||||||
resp.Answer = resp.Answer[:len(resp.Answer)-1]
|
resp.Answer = resp.Answer[:len(resp.Answer)-1]
|
||||||
}
|
}
|
||||||
|
|
||||||
return len(resp.Answer) < maxAnswers
|
return len(resp.Answer) < numAnswers
|
||||||
}
|
}
|
||||||
|
|
||||||
// serviceLookup is used to handle a service query
|
// serviceLookup is used to handle a service query
|
||||||
|
Loading…
x
Reference in New Issue
Block a user