Skip to content

Commit 7c5ae72

Browse files
committed
dnsx/alg: set DNSSummary.ID to Preset when approp
1 parent dedbcda commit 7c5ae72

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

intra/dnsx/alg.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1605,6 +1605,7 @@ func synthesizeOrQuery(preset []netip.Addr, tr Transport, msg *dns.Msg, network
16051605
return Req(tr, network, msg, smm)
16061606
}
16071607
withPresetSummary(smm, false /*req sent?*/, fixed)
1608+
smm.ID = Preset
16081609
smm.RCode = xdns.Rcode(ans)
16091610
smm.RData = xdns.GetInterestingRData(ans)
16101611
smm.RTtl = xdns.RTtl(ans) // usually 1 per xdns.AnsTTL
@@ -1665,6 +1666,7 @@ func Req(t Transport, network string, q *dns.Msg, smm *x.DNSSummary) (*dns.Msg,
16651666
discarded := new(x.DNSSummary)
16661667
smm = discarded
16671668
}
1669+
smm.ID = idstr(t)
16681670
if len(smm.QName) <= 0 {
16691671
smm.QName = qname
16701672
}

0 commit comments

Comments
 (0)