mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2025-07-16 05:53:28 +02:00
Discard additional responses instead of misattributing them
This commit is contained in:
@ -171,8 +171,14 @@ pub fn integrate_lookup_result(dig_result: &mut DnsLookupResult, lookup_result:
|
||||
RecordType::TXT => set_default_if_none(&mut dig_result.txt),
|
||||
_ => { /* This should not happen */ },
|
||||
};
|
||||
for record in lookup.iter() {
|
||||
add_record_to_lookup_result(dig_result, record);
|
||||
let name = lookup.query().name();
|
||||
for record in lookup.record_iter() {
|
||||
if name == record.name() {
|
||||
if let Some(data) = record.data() {
|
||||
add_record_to_lookup_result(dig_result, data);
|
||||
}
|
||||
}
|
||||
//TODO: handle additional responses
|
||||
}
|
||||
},
|
||||
Err(e) => {
|
||||
|
Reference in New Issue
Block a user