diff options
author | Hristo Venev <hristo@venev.name> | 2020-02-04 22:43:44 +0100 |
---|---|---|
committer | Hristo Venev <hristo@venev.name> | 2020-02-04 22:43:44 +0100 |
commit | e6c406879696a53d40f175d11d14a55d9480a57e (patch) | |
tree | 4f91613dbd7f019f33117148177a8a17dc84a94a /src/config.rs | |
parent | a7cff9572d672d516569b4a55b4a0dbbeb3cb9e1 (diff) |
More peer options in config.
endpoint and keepalive
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs index 362c962..7b3aa4b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,8 +1,8 @@ // SPDX-License-Identifier: LGPL-3.0-or-later // -// Copyright 2019 Hristo Venev +// Copyright 2019,2020 Hristo Venev -use crate::model::{Ipv4Set, Ipv6Set, Key, Secret}; +use crate::model::{Endpoint, Ipv4Set, Ipv6Set, Key, Secret}; use serde_derive; use std::collections::HashMap; use std::path::PathBuf; @@ -22,7 +22,9 @@ pub struct Source { #[serde(deny_unknown_fields)] pub struct Peer { pub source: Option<String>, + pub endpoint: Option<Endpoint>, pub psk: Option<Secret>, + pub keepalive: Option<u32>, } #[derive(Clone, PartialEq, Eq, Debug)] |