add mobile fallback platform verifier

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages
2025-10-29 10:41:23 +08:00
parent 5b2f391426
commit bbc8e2f31a
6 changed files with 246 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ use std::{
net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr},
ops::{Deref, DerefMut},
path::{Path, PathBuf},
sync::{Mutex, RwLock},
sync::{atomic::AtomicBool, Mutex, RwLock},
time::{Duration, Instant, SystemTime},
};
@@ -72,6 +72,11 @@ lazy_static::lazy_static! {
pub static ref BUILTIN_SETTINGS: RwLock<HashMap<String, String>> = Default::default();
}
#[cfg(target_os = "android")]
lazy_static::lazy_static! {
pub static ref ANDROID_RUSTLS_PLATFORM_VERIFIER_INITIALIZED: AtomicBool = AtomicBool::new(false);
}
lazy_static::lazy_static! {
pub static ref APP_DIR: RwLock<String> = Default::default();
}