diff --git a/Cargo.toml b/Cargo.toml index 1d478d3..7697530 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "defguard_wireguard" +name = "wireguard_rs" version = "0.1.0" edition = "2021" diff --git a/src/host.rs b/src/host.rs index 742ee32..7ffee4f 100644 --- a/src/host.rs +++ b/src/host.rs @@ -17,13 +17,13 @@ use crate::{key::Key, net::IpAddrMask}; #[derive(Debug, Default, PartialEq, Clone)] pub struct Peer { pub public_key: Key, - pub(super) preshared_key: Option, - pub(super) protocol_version: Option, - pub(super) endpoint: Option, + pub preshared_key: Option, + pub protocol_version: Option, + pub endpoint: Option, pub last_handshake: Option, - pub(super) tx_bytes: u64, - pub(super) rx_bytes: u64, - pub(super) persistent_keepalive_interval: Option, + pub tx_bytes: u64, + pub rx_bytes: u64, + pub persistent_keepalive_interval: Option, pub allowed_ips: Vec, }