mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-24 01:23:17 +03:00
fix dns resolving
This commit is contained in:
@@ -313,13 +313,16 @@ async fn update_client(
|
|||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
// update state in event input emulator & input capture
|
// resolve dns if something changed
|
||||||
if changed && active {
|
if changed {
|
||||||
// resolve dns
|
// resolve dns
|
||||||
if let Some(hostname) = hostname {
|
if let Some(hostname) = hostname {
|
||||||
let _ = resolve_tx.send(DnsRequest { hostname, handle }).await;
|
let _ = resolve_tx.send(DnsRequest { hostname, handle }).await;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// update state in event input emulator & input capture
|
||||||
|
if changed && active {
|
||||||
// update state
|
// update state
|
||||||
let _ = capture_notify_tx
|
let _ = capture_notify_tx
|
||||||
.send(CaptureEvent::ClientEvent(ClientEvent::Destroy(handle)))
|
.send(CaptureEvent::ClientEvent(ClientEvent::Destroy(handle)))
|
||||||
|
|||||||
Reference in New Issue
Block a user