bugfix: expose more of the types we are using

master
Ishan Jain 4 months ago
parent 40b373eb44
commit de24c4a07b
  1. 2
      src/interface/types.rs
  2. 3
      src/interface/wireguard.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<IpNetwork>);

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

Loading…
Cancel
Save