summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEmīls <emils@mullvad.net>2020-08-26 00:56:20 +0100
committerEmīls <emils@mullvad.net>2020-09-02 10:52:53 +0100
commit5d7179a3a5fce366a7ab8215de7e4133a7cb20fd (patch)
tree116a9605b84da5b8384d22f196e3a3ab04190cfe
parent21a39a53d108c6e90fcb73b225ebeda8123f5b9b (diff)
downloadmullvadvpn-5d7179a3a5fce366a7ab8215de7e4133a7cb20fd.tar.xz
mullvadvpn-5d7179a3a5fce366a7ab8215de7e4133a7cb20fd.zip
Expose routing runtime
-rw-r--r--talpid-core/src/routing/unix.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/talpid-core/src/routing/unix.rs b/talpid-core/src/routing/unix.rs
index a59ee6ed27..4fd7da37d1 100644
--- a/talpid-core/src/routing/unix.rs
+++ b/talpid-core/src/routing/unix.rs
@@ -194,6 +194,12 @@ impl RouteManager {
}
}
+ /// Exposes runtime handle
+ #[cfg(target_os = "linux")]
+ pub fn runtime_handle(&self) -> tokio02::runtime::Handle {
+ self.runtime.handle().clone()
+ }
+
/// Route DNS requests through the tunnel interface.
#[cfg(target_os = "linux")]
pub fn route_exclusions_dns(