The flowback solution of HarmonyOS 5 failed due to the anti-loop mechanism. (#1514)

This commit is contained in:
韩嘉乐
2025-10-25 00:17:24 +08:00
committed by GitHub
parent 71679e889a
commit 26d002bc2b
5 changed files with 26 additions and 88 deletions
@@ -1,6 +1,7 @@
mod native_log;
use easytier::common::config::{ConfigLoader, TomlConfigLoader};
use easytier::common::constants::EASYTIER_VERSION;
use easytier::instance_manager::NetworkInstanceManager;
use easytier::launcher::ConfigSource;
use napi_derive_ohos::napi;
@@ -17,6 +18,11 @@ pub struct KeyValuePair {
pub value: String,
}
#[napi]
pub fn easytier_version() -> String {
EASYTIER_VERSION.to_string()
}
#[napi]
pub fn set_tun_fd(inst_id: String, fd: i32) -> bool {
match Uuid::try_parse(&inst_id) {