mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-10 10:11:29 +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
|
||||
if changed && active {
|
||||
// resolve dns if something changed
|
||||
if changed {
|
||||
// resolve dns
|
||||
if let Some(hostname) = hostname {
|
||||
let _ = resolve_tx.send(DnsRequest { hostname, handle }).await;
|
||||
}
|
||||
}
|
||||
|
||||
// update state in event input emulator & input capture
|
||||
if changed && active {
|
||||
// update state
|
||||
let _ = capture_notify_tx
|
||||
.send(CaptureEvent::ClientEvent(ClientEvent::Destroy(handle)))
|
||||
|
||||
Reference in New Issue
Block a user