feat: record delayed DNS responses in dnsping (#878)

See https://github.com/ooni/probe/issues/2231

Co-authored-by: decfox <decfox@github.com>
Co-authored-by: Simone Basso <bassosimone@gmail.com>
This commit is contained in:
DecFox 2022-08-25 17:29:24 +05:30 committed by GitHub
commit 0ef1f24617
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 6 deletions

View file

@ -16,7 +16,8 @@ type TestKeys struct {
// SinglePing contains the results of a single ping.
type SinglePing struct {
Query *model.ArchivalDNSLookupResult `json:"query"`
Query *model.ArchivalDNSLookupResult `json:"query"`
DelayedResponses []*model.ArchivalDNSLookupResult `json:"delayed_responses"`
}
// NewTestKeys creates new dnsping TestKeys