From e6c406879696a53d40f175d11d14a55d9480a57e Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Tue, 4 Feb 2020 22:43:44 +0100 Subject: More peer options in config. endpoint and keepalive --- src/config.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/config.rs') 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, + pub endpoint: Option, pub psk: Option, + pub keepalive: Option, } #[derive(Clone, PartialEq, Eq, Debug)] -- cgit