mirror of
https://codeberg.org/icewind/netnsd.git
synced 2026-06-03 17:14:06 +02:00
don't remove namespaces on daemon exit
This commit is contained in:
parent
9af09c8669
commit
3a8b684600
6 changed files with 52 additions and 56 deletions
|
|
@ -40,6 +40,10 @@ impl Config {
|
|||
pub fn reload(&self) -> Result<Config, ConfigError> {
|
||||
Self::load(&self.path)
|
||||
}
|
||||
|
||||
pub fn get_namespace<'a>(&'a self, name: &NamespaceName) -> Option<&'a NamespaceConfig> {
|
||||
self.namespaces.iter().find(|namespace| &namespace.name == name)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue