From c5f2f6cf825a009b468420a11a1f46888b2d31e2 Mon Sep 17 00:00:00 2001 From: dijunkun Date: Wed, 11 Oct 2023 16:03:22 +0800 Subject: [PATCH] Add feature password --- remote_desk_gui/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/remote_desk_gui/main.cpp b/remote_desk_gui/main.cpp index 60862f7..e40c1b5 100644 --- a/remote_desk_gui/main.cpp +++ b/remote_desk_gui/main.cpp @@ -496,7 +496,7 @@ int main() { std::string user_id = "S-" + std::string(GetMac(mac_addr)); if (strcmp(online_label, "Online") == 0) { - CreateConnection(peer_server, mac_addr); + CreateConnection(peer_server, mac_addr, server_password); nv12_buffer_ = new char[NV12_BUFFER_SIZE]; #ifdef _WIN32 @@ -572,7 +572,7 @@ int main() { if (ImGui::Button(connect_label)) { if (strcmp(connect_label, "Connect") == 0 && !joined) { std::string user_id = "C-" + std::string(GetMac(mac_addr)); - JoinConnection(peer_client, remote_id); + JoinConnection(peer_client, remote_id, client_password); joined = true; } else if (strcmp(connect_label, "Disconnect") == 0 && joined) { LeaveConnection(peer_client);