mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-07-23 15:20:38 +00:00
Send the real client UID for non-GFE hosts
This allows non-GFE hosts to perform their own custom session management while allowing all clients to share the same session with GFE.
This commit is contained in:
@@ -31,7 +31,7 @@ public:
|
||||
private:
|
||||
bool tryPollComputer(QNetworkAccessManager* nam, NvAddress address, bool& changed)
|
||||
{
|
||||
NvHTTP http(address, 0, m_Computer->serverCert, nam);
|
||||
NvHTTP http(address, 0, m_Computer->serverCert, !m_Computer->isNvidiaServerSoftware, nam);
|
||||
|
||||
QString serverInfo;
|
||||
try {
|
||||
@@ -825,7 +825,8 @@ private:
|
||||
|
||||
void run()
|
||||
{
|
||||
NvHTTP http(m_Address, 0, QSslCertificate());
|
||||
// Use the placeholder UID for the initial poll, then we'll switch to the real one if it's not GFE
|
||||
NvHTTP http(m_Address, 0, QSslCertificate(), false);
|
||||
|
||||
if (m_Mdns) {
|
||||
if (m_MdnsIpv6Address.isNull()) {
|
||||
@@ -853,6 +854,7 @@ private:
|
||||
|
||||
// Create initial newComputer using HTTP serverinfo with no pinned cert
|
||||
NvComputer* newComputer = new NvComputer(http, serverInfo);
|
||||
http.setTrueUid(!newComputer->isNvidiaServerSoftware);
|
||||
|
||||
// Check if we have a record of this host UUID to pull the pinned cert
|
||||
NvComputer* existingComputer;
|
||||
|
||||
Reference in New Issue
Block a user