aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2020-02-04 20:31:51 +0100
committerHristo Venev <hristo@venev.name>2020-02-04 20:31:51 +0100
commitc4f743e2a33ba39036f7e9919b7adc80415b1754 (patch)
treec708bbc6e089a1b66c61d189a010cb2a80aa0a34 /src/config.rs
parent3f5c00af303c1b706a74cafa58ff23b068f6d819 (diff)
Reference preshared keys by path.
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs
index 6269525..362c962 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -2,7 +2,7 @@
//
// Copyright 2019 Hristo Venev
-use crate::model::{Ipv4Set, Ipv6Set, Key};
+use crate::model::{Ipv4Set, Ipv6Set, Key, Secret};
use serde_derive;
use std::collections::HashMap;
use std::path::PathBuf;
@@ -11,7 +11,7 @@ use std::path::PathBuf;
#[serde(deny_unknown_fields)]
pub struct Source {
pub url: String,
- pub psk: Option<Key>,
+ pub psk: Option<Secret>,
pub ipv4: Ipv4Set,
pub ipv6: Ipv6Set,
#[serde(default)]
@@ -22,7 +22,7 @@ pub struct Source {
#[serde(deny_unknown_fields)]
pub struct Peer {
pub source: Option<String>,
- pub psk: Option<Key>,
+ pub psk: Option<Secret>,
}
#[derive(Clone, PartialEq, Eq, Debug)]