summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--talpid-core/src/dns/macos.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/talpid-core/src/dns/macos.rs b/talpid-core/src/dns/macos.rs
index b58e47eada..efb4e8c816 100644
--- a/talpid-core/src/dns/macos.rs
+++ b/talpid-core/src/dns/macos.rs
@@ -132,6 +132,10 @@ pub struct DnsMonitor {
state: Arc<Mutex<Option<State>>>,
}
+/// SAFETY: The `SCDynamicStore` can be sent to other threads since it doesn't share mutable state
+/// with anything else.
+unsafe impl Send for DnsMonitor {}
+
impl super::DnsMonitorT for DnsMonitor {
type Error = Error;