mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2024-12-28 04:28:23 +01:00
Discard additional responses instead of misattributing them
This commit is contained in:
parent
51d7954d71
commit
1fe59d24d5
@ -70,6 +70,7 @@ The default configuration is pretty liberal so that the average human probably w
|
|||||||
* [ ] Investigate why search isn't working for global TLDs
|
* [ ] Investigate why search isn't working for global TLDs
|
||||||
* [ ] Add a way to configure just the dns server addresses and derive the port from the protocol.
|
* [ ] Add a way to configure just the dns server addresses and derive the port from the protocol.
|
||||||
* [ ] Add an about page for the system resolver
|
* [ ] Add an about page for the system resolver
|
||||||
|
* [ ] Expose additional DNS responses on the web interface
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
@ -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),
|
RecordType::TXT => set_default_if_none(&mut dig_result.txt),
|
||||||
_ => { /* This should not happen */ },
|
_ => { /* This should not happen */ },
|
||||||
};
|
};
|
||||||
for record in lookup.iter() {
|
let name = lookup.query().name();
|
||||||
add_record_to_lookup_result(dig_result, record);
|
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) => {
|
Err(e) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user