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:
Cameron Gutman
2026-06-21 15:15:43 -05:00
parent 1be234e96a
commit 170801ba9f
3 changed files with 20 additions and 13 deletions
+4 -2
View File
@@ -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;