aboutsummaryrefslogtreecommitdiffstats
path: root/src/types.rs
diff options
context:
space:
mode:
authorJake McGinty <me@jake.su>2018-01-27 18:24:27 -0800
committerJake McGinty <me@jake.su>2018-01-27 18:24:27 -0800
commit03f6c1d52742c541b351f83c4a3a55f27ed2301c (patch)
treeaf23f8aab0e82b2e70ff437eb34cfe6c6bed1fcd /src/types.rs
parentre-introduce ring support (diff)
downloadwireguard-rs-03f6c1d52742c541b351f83c4a3a55f27ed2301c.tar.xz
wireguard-rs-03f6c1d52742c541b351f83c4a3a55f27ed2301c.zip
handle incoming handshake init packets
Diffstat (limited to 'src/types.rs')
-rw-r--r--src/types.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.rs b/src/types.rs
index 29b02bb..10f6c17 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -4,7 +4,7 @@ use byteorder::{BigEndian, LittleEndian, WriteBytesExt, ReadBytesExt};
use std::fmt::{self, Display, Formatter};
use std::net::{Ipv4Addr, IpAddr, SocketAddr};
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, Default)]
pub struct PeerInfo {
pub pub_key: [u8; 32],
pub psk: Option<[u8; 32]>,