wasm fixes

This commit is contained in:
Christien Rioux
2024-01-19 21:30:48 -05:00
parent b9705285e9
commit ae339e6573
5 changed files with 21 additions and 19 deletions

View File

@@ -12,11 +12,11 @@ use std::io;
cfg_if! {
if #[cfg(all(feature = "unstable-blockstore", feature="unstable-tunnels"))] {
const PUBLIC_INTERNET_CAPABILITIES_LEN: usize = 6;
const PUBLIC_INTERNET_CAPABILITIES_LEN: usize = 7;
} else if #[cfg(any(feature = "unstable-blockstore", feature="unstable-tunnels"))] {
const PUBLIC_INTERNET_CAPABILITIES_LEN: usize = 5;
const PUBLIC_INTERNET_CAPABILITIES_LEN: usize = 6;
} else {
const PUBLIC_INTERNET_CAPABILITIES_LEN: usize = 4;
const PUBLIC_INTERNET_CAPABILITIES_LEN: usize = 5;
}
}
pub const PUBLIC_INTERNET_CAPABILITIES: [Capability; PUBLIC_INTERNET_CAPABILITIES_LEN] = [

View File

@@ -19,12 +19,12 @@ pub async fn test_startup_shutdown_from_config() {
table_store: VeilidConfigTableStore {
directory: get_table_store_path(),
delete: true,
..Default::default()
// ..Default::default()
},
block_store: VeilidConfigBlockStore {
directory: get_block_store_path(),
delete: true,
..Default::default()
//..Default::default()
},
protected_store: VeilidConfigProtectedStore {
allow_insecure_fallback: true,

View File

@@ -263,11 +263,12 @@ impl Default for VeilidConfigTLS {
}
pub fn get_default_ssl_directory(sub_path: &str) -> String {
let default_path = PathBuf::from("/etc/veilid-server/ssl").join(sub_path);
#[cfg(unix)]
if default_path.exists() {
return default_path.to_string_lossy().into();
{
let default_path = PathBuf::from("/etc/veilid-server/ssl").join(sub_path);
if default_path.exists() {
return default_path.to_string_lossy().into();
}
}
ProjectDirs::from("org", "Veilid", "Veilid")