mirror of
https://codeberg.org/icewind/netnsd.git
synced 2026-06-03 17:14:06 +02:00
cleanup namespace creation
This commit is contained in:
parent
b4cf0acb44
commit
ac98bcbc00
5 changed files with 189 additions and 134 deletions
|
|
@ -148,7 +148,7 @@ struct ActiveNamespace {
|
|||
|
||||
impl ActiveNamespace {
|
||||
pub fn new(config: &NamespaceConfig) -> Result<Self, DaemonError> {
|
||||
let ns = NetNs::new(&config.name)?;
|
||||
let ns = NetNs::new(config.name.clone())?;
|
||||
|
||||
let mut namespace = ActiveNamespace {
|
||||
ns,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue