mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 18:24:36 +00:00
feat: Enable core to use local config files while being managed via the web (#1540)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
mod native_log;
|
||||
|
||||
use easytier::common::config::{ConfigLoader, TomlConfigLoader};
|
||||
use easytier::common::config::{ConfigFileControl, ConfigLoader, TomlConfigLoader};
|
||||
use easytier::common::constants::EASYTIER_VERSION;
|
||||
use easytier::instance_manager::NetworkInstanceManager;
|
||||
use napi_derive_ohos::napi;
|
||||
@@ -75,7 +75,9 @@ pub fn run_network_instance(cfg_str: String) -> bool {
|
||||
{
|
||||
return false;
|
||||
}
|
||||
INSTANCE_MANAGER.run_network_instance(cfg, false).unwrap();
|
||||
INSTANCE_MANAGER
|
||||
.run_network_instance(cfg, false, ConfigFileControl::STATIC_CONFIG)
|
||||
.unwrap();
|
||||
true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user