mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-23 09:30:54 +00:00
Make virtual DNS more robust
This commit is contained in:
parent
3c8005e6b7
commit
83846fe631
1 changed files with 3 additions and 1 deletions
|
@ -203,7 +203,9 @@ impl VirtualDns {
|
|||
}
|
||||
|
||||
if let Some(ip) = self.name_to_ip.get(&name) {
|
||||
return Some(*ip);
|
||||
let result = Some(*ip);
|
||||
self.touch_ip(&ip.clone());
|
||||
return result;
|
||||
}
|
||||
|
||||
let started_at = self.next_addr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue