diff options
| author | David Lönnhager <david.l@mullvad.net> | 2020-06-18 14:40:30 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2020-06-18 14:40:30 +0200 |
| commit | 406f0cb827720294dc15e6b35db4f0899584fdb4 (patch) | |
| tree | 01634ecb1474f0df7f1a93f2bc2f9f231ab0231f | |
| parent | 914a81c77e8050ee5a241ad32d00831e6069bcae (diff) | |
| parent | 877fbe0a9ab502e694d78c21a5d08a98583f0519 (diff) | |
| download | mullvadvpn-406f0cb827720294dc15e6b35db4f0899584fdb4.tar.xz mullvadvpn-406f0cb827720294dc15e6b35db4f0899584fdb4.zip | |
Merge branch 'openvpn-plugin-update'
| -rw-r--r-- | talpid-core/src/tunnel/openvpn.rs | 6 | ||||
| -rw-r--r-- | talpid-openvpn-plugin/proto/openvpn_plugin.proto | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/talpid-core/src/tunnel/openvpn.rs b/talpid-core/src/tunnel/openvpn.rs index 391d1f75f5..ad7563fe7c 100644 --- a/talpid-core/src/tunnel/openvpn.rs +++ b/talpid-core/src/tunnel/openvpn.rs @@ -631,7 +631,7 @@ mod event_server { } use proto::{ openvpn_event_proxy_server::{OpenvpnEventProxy, OpenvpnEventProxyServer}, - Empty, EventType, + EventType, }; #[derive(err_derive::Error, Debug)] @@ -659,7 +659,7 @@ mod event_server { async fn event( &self, request: Request<EventType>, - ) -> std::result::Result<Response<Empty>, tonic::Status> { + ) -> std::result::Result<Response<()>, tonic::Status> { log::info!("OpenVPN event {:?}", request); let request = request.into_inner(); @@ -669,7 +669,7 @@ mod event_server { (self.on_event)(event_type, request.env); - Ok(Response::new(Empty {})) + Ok(Response::new(())) } } diff --git a/talpid-openvpn-plugin/proto/openvpn_plugin.proto b/talpid-openvpn-plugin/proto/openvpn_plugin.proto index 76600b0698..07bd9d6f1a 100644 --- a/talpid-openvpn-plugin/proto/openvpn_plugin.proto +++ b/talpid-openvpn-plugin/proto/openvpn_plugin.proto @@ -2,14 +2,13 @@ syntax = "proto3"; package talpid_openvpn_plugin; +import "google/protobuf/empty.proto"; + service OpenvpnEventProxy { - rpc Event(EventType) returns (Empty) {} + rpc Event(EventType) returns (google.protobuf.Empty) {} } message EventType { int32 event = 1; map<string, string> env = 2; } - -message Empty { -} |
