From 06c4c67832506563c787cad236cc63602a1f9318 Mon Sep 17 00:00:00 2001 From: dzania Date: Fri, 8 Sep 2023 13:13:55 +0200 Subject: [PATCH] make fields of Peer struct public --- Cargo.toml | 2 +- src/host.rs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) 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, }