update remote config

This commit is contained in:
2025-09-22 14:05:27 -05:00
parent 7d6356cbdc
commit 1f775dd6f7

View File

@@ -346,8 +346,16 @@ protected:
config2->set_database_type(database_type::sqlite);
#endif // !defined(_WIN32)
drive_args2 = {"-dd", config2->get_data_directory(), "-rm",
fmt::format("localhost:{}", provider_t::remote_port)};
auto rem_cfg = config2->get_remote_config();
rem_cfg.host_name_or_ip = "localhost";
rem_cfg.api_port = provider_t::remote_port;
config2->set_remote_config(rem_cfg);
drive_args2 = {
"-dd",
config2->get_data_directory(),
"-rm",
fmt::format("localhost:{}", provider_t::remote_port),
};
platform_ops::execute_mount(drive_args2, mount_location);
};