summaryrefslogtreecommitdiffhomepage
path: root/talpid-openvpn-plugin/src
diff options
context:
space:
mode:
Diffstat (limited to 'talpid-openvpn-plugin/src')
-rw-r--r--talpid-openvpn-plugin/src/lib.rs2
-rw-r--r--talpid-openvpn-plugin/src/processing.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/talpid-openvpn-plugin/src/lib.rs b/talpid-openvpn-plugin/src/lib.rs
index f1c210b4d1..71c332a212 100644
--- a/talpid-openvpn-plugin/src/lib.rs
+++ b/talpid-openvpn-plugin/src/lib.rs
@@ -66,7 +66,7 @@ fn openvpn_open(
let core_server_id = parse_args(&args)?;
info!("Connecting back to talpid core at {}", core_server_id);
- let processor = EventProcessor::new(core_server_id).chain_err(|| ErrorKind::InitHandleFailed)?;
+ let processor = EventProcessor::new(&core_server_id).chain_err(|| ErrorKind::InitHandleFailed)?;
Ok((INTERESTING_EVENTS.to_vec(), processor))
}
diff --git a/talpid-openvpn-plugin/src/processing.rs b/talpid-openvpn-plugin/src/processing.rs
index 5fc2a1312e..a376665888 100644
--- a/talpid-openvpn-plugin/src/processing.rs
+++ b/talpid-openvpn-plugin/src/processing.rs
@@ -18,7 +18,7 @@ pub struct EventProcessor {
}
impl EventProcessor {
- pub fn new(server_id: IpcServerId) -> Result<EventProcessor> {
+ pub fn new(server_id: &IpcServerId) -> Result<EventProcessor> {
trace!("Creating EventProcessor");
let ipc_client =
WsIpcClient::connect(server_id).chain_err(|| "Unable to create IPC client")?;