mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 12:15:34 +08:00
[fix] fix cache file and cert file read
This commit is contained in:
@@ -466,9 +466,10 @@ int Render::CreateConnectionPeer() {
|
|||||||
params_.turn_server_port = 3478;
|
params_.turn_server_port = 3478;
|
||||||
params_.turn_server_username = "dijunkun";
|
params_.turn_server_username = "dijunkun";
|
||||||
params_.turn_server_password = "dijunkunpw";
|
params_.turn_server_password = "dijunkunpw";
|
||||||
params_.tls_cert_path =
|
params_.tls_cert_path = std::filesystem::exists(cert_path_)
|
||||||
cert_path_.empty() ? "certs/crossdesk.cn_root.crt" : cert_path_.c_str();
|
? cert_path_.c_str()
|
||||||
params_.log_path = dll_log_path_.empty() ? "logs" : dll_log_path_.c_str();
|
: "certs/crossdesk.cn_root.crt";
|
||||||
|
params_.log_path = dll_log_path_.c_str();
|
||||||
params_.hardware_acceleration = config_center_.IsHardwareVideoCodec();
|
params_.hardware_acceleration = config_center_.IsHardwareVideoCodec();
|
||||||
params_.av1_encoding = config_center_.GetVideoEncodeFormat() ==
|
params_.av1_encoding = config_center_.GetVideoEncodeFormat() ==
|
||||||
ConfigCenter::VIDEO_ENCODE_FORMAT::AV1
|
ConfigCenter::VIDEO_ENCODE_FORMAT::AV1
|
||||||
@@ -925,7 +926,7 @@ int Render::Run() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Render::InitializeLogger() {
|
void Render::InitializeLogger() {
|
||||||
if (!exec_log_path_.empty()) {
|
if (std::filesystem::exists(exec_log_path_)) {
|
||||||
InitLogger(exec_log_path_);
|
InitLogger(exec_log_path_);
|
||||||
} else {
|
} else {
|
||||||
InitLogger("logs");
|
InitLogger("logs");
|
||||||
|
|||||||
@@ -496,7 +496,7 @@ void Render::NetStatusReport(const char *client_id, size_t client_id_size,
|
|||||||
|
|
||||||
memset(&render->client_id_with_password_, 0,
|
memset(&render->client_id_with_password_, 0,
|
||||||
sizeof(render->client_id_with_password_));
|
sizeof(render->client_id_with_password_));
|
||||||
strncpy(render->client_id_with_password_, id.c_str(),
|
strncpy(render->client_id_with_password_, client_id,
|
||||||
sizeof(render->client_id_with_password_) - 1);
|
sizeof(render->client_id_with_password_) - 1);
|
||||||
render->client_id_with_password_[sizeof(render->client_id_with_password_) -
|
render->client_id_with_password_[sizeof(render->client_id_with_password_) -
|
||||||
1] = '\0';
|
1] = '\0';
|
||||||
|
|||||||
2
thirdparty/minirtc
vendored
2
thirdparty/minirtc
vendored
Submodule thirdparty/minirtc updated: bbb572dcec...2f4b928649
Reference in New Issue
Block a user