mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-23 15:29:10 +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;
|
||||
}
|
||||
|
||||
if qtype == DnsRecordType::A as u16 {
|
||||
log::info!("DNS query: {}", qname);
|
||||
}
|
||||
|
||||
let mut response = Vec::<u8>::new();
|
||||
response.extend(&data[0..offset + 4]);
|
||||
|
|
Loading…
Add table
Reference in a new issue