From d9a8d67e3d60a48504804f1db53b65f8e0a0c0a4 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 22 Dec 2018 21:04:44 -0800 Subject: [PATCH] Use a shared UID for all Moonlight clients --- app/backend/nvhttp.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/backend/nvhttp.cpp b/app/backend/nvhttp.cpp index a7653f15..40899038 100644 --- a/app/backend/nvhttp.cpp +++ b/app/backend/nvhttp.cpp @@ -399,8 +399,12 @@ NvHTTP::openConnection(QUrl baseUrl, // Build a URL for the request QUrl url(baseUrl); url.setPath("/" + command); - url.setQuery("uniqueid=" + IdentityManager::get()->getUniqueId() + - "&uuid=" + QUuid::createUuid().toRfc4122().toHex() + + + // Use a common UID for Moonlight clients to allow them to quit + // games for each other (otherwise GFE gets screwed up and it requires + // manual intervention to solve). + url.setQuery("uniqueid=0123456789ABCDEF&uuid=" + + QUuid::createUuid().toRfc4122().toHex() + ((arguments != nullptr) ? ("&" + arguments) : "")); QNetworkRequest request = QNetworkRequest(url);