mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-05 15:58:46 +00:00
Ensure the PC that responded is the one we're querying
This commit is contained in:
parent
bb95c4db78
commit
8ce2b410d2
1 changed files with 6 additions and 0 deletions
|
@ -57,6 +57,12 @@ class PcMonitorThread : public QThread
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ensure the machine that responded is the one we intended to contact
|
||||||
|
if (!m_Computer->uuid.isNull() && m_Computer->uuid != http.getXmlString(serverInfo, "uniqueid")) {
|
||||||
|
qInfo() << "Found unexpected PC at address " << address;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
changed = false;
|
changed = false;
|
||||||
|
|
||||||
QString newName = http.getXmlString(serverInfo, "hostname");
|
QString newName = http.getXmlString(serverInfo, "hostname");
|
||||||
|
|
Loading…
Reference in a new issue