mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 11:59:59 +03:00
resolve dns when activating
This commit is contained in:
@@ -340,6 +340,9 @@ impl Service {
|
||||
}
|
||||
FrontendRequest::Activate(handle, active) => {
|
||||
if active {
|
||||
if let Some(hostname) = self.client_manager.get_hostname(handle) {
|
||||
dns.resolve(handle, hostname);
|
||||
}
|
||||
self.activate_client(capture, handle);
|
||||
} else {
|
||||
self.deactivate_client(capture, handle);
|
||||
|
||||
Reference in New Issue
Block a user