Skip to content

Commit

Permalink
resolve dns when activating
Browse files Browse the repository at this point in the history
  • Loading branch information
feschber committed Oct 28, 2024
1 parent 9274a4c commit 609429e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 609429e

Please sign in to comment.