resolve dns when activating

This commit is contained in:
Ferdinand Schober
2024-10-28 17:16:04 +01:00
parent aa4097b4ee
commit 5461c6a00e

View File

@@ -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);