bugfix: expose more of the types we are using

This commit is contained in:
Ishan Jain 2022-08-12 00:11:01 +05:30
parent 40b373eb44
commit de24c4a07b
2 changed files with 4 additions and 1 deletions

View File

@ -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<IpNetwork>);

View File

@ -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};