Modular Diplonat (with the option to disable useless modules) #8
3 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
mod options;
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod options_test;
|
mod config_test;
|
||||||
|
mod options;
|
||||||
mod runtime;
|
mod runtime;
|
||||||
|
|
||||||
pub use options::{
|
pub use options::{
|
||||||
|
|
|
@ -46,10 +46,10 @@ pub struct RuntimeConfig {
|
||||||
|
|
||||||
impl RuntimeConfig {
|
impl RuntimeConfig {
|
||||||
pub fn new(opts: ConfigOpts) -> Result<Self> {
|
pub fn new(opts: ConfigOpts) -> Result<Self> {
|
||||||
let consul = RuntimeConfigConsul::new(opts.consul.clone())?;
|
let consul = RuntimeConfigConsul::new(opts.consul)?;
|
||||||
let acme = RuntimeConfigAcme::new(opts.acme.clone())?;
|
let acme = RuntimeConfigAcme::new(opts.acme)?;
|
||||||
let firewall = RuntimeConfigFirewall::new(opts.firewall.clone())?;
|
let firewall = RuntimeConfigFirewall::new(opts.firewall)?;
|
||||||
let igd = RuntimeConfigIgd::new(opts.igd.clone())?;
|
let igd = RuntimeConfigIgd::new(opts.igd)?;
|
||||||
|
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
acme,
|
acme,
|
||||||
|
|
Loading…
Reference in a new issue