aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 0dbb235..637f01c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -46,6 +46,7 @@ pub struct Device {
impl Device {
pub fn new(ifname: String, c: config::Config) -> io::Result<Device> {
let dev = wg::Device::new(ifname)?;
+ let _ = dev.get_public_key()?;
Ok(Device {
dev,