mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-02-25 18:55:38 -06:00
wasm fixes
This commit is contained in:
@@ -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] = [
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user