add callback for getContainerIp (#2851)

* add callback for getContainerIp

* register callback before retrieving info

* version bump; only use backports for linux
This commit is contained in:
Aiden McClelland
2025-03-20 15:54:05 -06:00
committed by GitHub
parent 05162ca350
commit 9e63f3f7c6
69 changed files with 592 additions and 262 deletions

View File

@@ -202,7 +202,7 @@ pub async fn add_domain<Kind: HostApiKind>(
)?;
check_duplicates(db)
})
.await?;
.await.result?;
Kind::sync_host(&ctx, inheritance).await?;
Ok(())
@@ -224,7 +224,8 @@ pub async fn remove_domain<Kind: HostApiKind>(
.as_domains_mut()
.remove(&domain)
})
.await?;
.await
.result?;
Kind::sync_host(&ctx, inheritance).await?;
Ok(())
@@ -258,7 +259,8 @@ pub async fn add_onion<Kind: HostApiKind>(
.mutate(|a| Ok(a.insert(onion)))?;
check_duplicates(db)
})
.await?;
.await
.result?;
Kind::sync_host(&ctx, inheritance).await?;
@@ -285,7 +287,8 @@ pub async fn remove_onion<Kind: HostApiKind>(
.as_onions_mut()
.mutate(|a| Ok(a.remove(&onion)))
})
.await?;
.await
.result?;
Kind::sync_host(&ctx, inheritance).await?;