mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-08-19 01:26:35 +08:00
[feat] use server-issued TURN credentials
This commit is contained in:
@@ -94,12 +94,11 @@ int GuiRuntime::CreateConnectionPeer() {
|
|||||||
sizeof(params_.turn_server_ip) - 1);
|
sizeof(params_.turn_server_ip) - 1);
|
||||||
params_.turn_server_ip[sizeof(params_.turn_server_ip) - 1] = '\0';
|
params_.turn_server_ip[sizeof(params_.turn_server_ip) - 1] = '\0';
|
||||||
params_.turn_server_port = coturn_server_port;
|
params_.turn_server_port = coturn_server_port;
|
||||||
strncpy((char *)params_.turn_server_username, "crossdesk",
|
// TURN credentials are issued by the signaling server after login. Keep the
|
||||||
sizeof(params_.turn_server_username) - 1);
|
// initial values empty so a reusable static password is never embedded in
|
||||||
params_.turn_server_username[sizeof(params_.turn_server_username) - 1] = '\0';
|
// the client binary.
|
||||||
strncpy((char *)params_.turn_server_password, "crossdeskpw",
|
params_.turn_server_username[0] = '\0';
|
||||||
sizeof(params_.turn_server_password) - 1);
|
params_.turn_server_password[0] = '\0';
|
||||||
params_.turn_server_password[sizeof(params_.turn_server_password) - 1] = '\0';
|
|
||||||
|
|
||||||
strncpy(params_.log_path, dll_log_path_.c_str(),
|
strncpy(params_.log_path, dll_log_path_.c_str(),
|
||||||
sizeof(params_.log_path) - 1);
|
sizeof(params_.log_path) - 1);
|
||||||
|
|||||||
+1
-1
Submodule submodules/minirtc updated: 50ca51ecc1...2f6881917f
Reference in New Issue
Block a user