mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-08 23:57:42 +00:00
Only log the DNS A query
This commit is contained in:
parent
33892e28dc
commit
bfface515d
1 changed files with 3 additions and 1 deletions
|
@ -85,7 +85,9 @@ impl VirtualDns {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if qtype == DnsRecordType::A as u16 {
|
||||||
log::info!("DNS query: {}", qname);
|
log::info!("DNS query: {}", qname);
|
||||||
|
}
|
||||||
|
|
||||||
let mut response = Vec::<u8>::new();
|
let mut response = Vec::<u8>::new();
|
||||||
response.extend(&data[0..offset + 4]);
|
response.extend(&data[0..offset + 4]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue