From de24c4a07b7778f53d2b52394695d8139b7abe78 Mon Sep 17 00:00:00 2001 From: Ishan Jain Date: Fri, 12 Aug 2022 00:11:01 +0530 Subject: [PATCH] bugfix: expose more of the types we are using --- src/interface/types.rs | 2 ++ src/interface/wireguard.rs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/interface/types.rs b/src/interface/types.rs index 9a79310..da61edb 100644 --- a/src/interface/types.rs +++ b/src/interface/types.rs @@ -185,6 +185,8 @@ where } } +// TODO(ishan): Make it easier for people to use this! +// They should just able to specify it as a string and we can parse it #[derive(Debug, Clone, PartialEq, Deserialize)] pub struct AllowedAddresses(pub Vec); diff --git a/src/interface/wireguard.rs b/src/interface/wireguard.rs index 6e18474..8603a21 100644 --- a/src/interface/wireguard.rs +++ b/src/interface/wireguard.rs @@ -1,5 +1,6 @@ pub use crate::interface::types::{ - AddWireguardPeerInput, AddWireguardPeerOutput, WireguardInterface, WireguardPeer, + AddWireguardPeerInput, AddWireguardPeerOutput, AllowedAddresses, WireguardInterface, + WireguardPeer, }; use crate::{Client, ClientError}; use serde::{Deserialize, Serialize};