aboutsummaryrefslogtreecommitdiff
path: root/src/manager/builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/manager/builder.rs')
-rw-r--r--src/manager/builder.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/manager/builder.rs b/src/manager/builder.rs
index 9fc2291..3f3e227 100644
--- a/src/manager/builder.rs
+++ b/src/manager/builder.rs
@@ -47,17 +47,17 @@ pub struct ConfigBuilder<'a> {
c: model::Config,
err: Vec<ConfigError>,
public_key: model::Key,
- pc: &'a config::PeerConfig,
+ gc: &'a config::GlobalConfig,
}
impl<'a> ConfigBuilder<'a> {
#[inline]
- pub fn new(public_key: model::Key, pc: &'a config::PeerConfig) -> Self {
+ pub fn new(public_key: model::Key, gc: &'a config::GlobalConfig) -> Self {
Self {
c: model::Config::default(),
err: vec![],
public_key,
- pc,
+ gc,
}
}
@@ -72,11 +72,11 @@ impl<'a> ConfigBuilder<'a> {
return;
}
- let pc = self.pc;
+ let gc = self.gc;
let ent = insert_peer(&mut self.c, &mut self.err, s, &p.peer, |ent| {
ent.psk = s.psk.clone();
ent.endpoint = Some(p.endpoint.clone());
- ent.keepalive = pc.fix_keepalive(p.keepalive);
+ ent.keepalive = gc.fix_keepalive(p.keepalive);
});
add_peer(&mut self.err, ent, s, &p.peer)