mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 22:39:18 +02:00
CR feedback
This commit is contained in:
parent
126ae52cb4
commit
0553dbdcb7
3 changed files with 5 additions and 4 deletions
|
@ -121,7 +121,7 @@ void DomainGatekeeper::processConnectRequestPacket(QSharedPointer<ReceivedMessag
|
||||||
|
|
||||||
qDebug() << "Allowed connection from node" << uuidStringWithoutCurlyBraces(node->getUUID())
|
qDebug() << "Allowed connection from node" << uuidStringWithoutCurlyBraces(node->getUUID())
|
||||||
<< "on" << message->getSenderSockAddr() << "with MAC" << nodeConnection.hardwareAddress
|
<< "on" << message->getSenderSockAddr() << "with MAC" << nodeConnection.hardwareAddress
|
||||||
<< " and machine fingerprint " << nodeConnection.machineFingerprint;
|
<< "and machine fingerprint" << nodeConnection.machineFingerprint;
|
||||||
|
|
||||||
// signal that we just connected a node so the DomainServer can get it a list
|
// signal that we just connected a node so the DomainServer can get it a list
|
||||||
// and broadcast its presence right away
|
// and broadcast its presence right away
|
||||||
|
@ -129,7 +129,7 @@ void DomainGatekeeper::processConnectRequestPacket(QSharedPointer<ReceivedMessag
|
||||||
} else {
|
} else {
|
||||||
qDebug() << "Refusing connection from node at" << message->getSenderSockAddr()
|
qDebug() << "Refusing connection from node at" << message->getSenderSockAddr()
|
||||||
<< "with hardware address" << nodeConnection.hardwareAddress
|
<< "with hardware address" << nodeConnection.hardwareAddress
|
||||||
<< " and machine fingerprint " << nodeConnection.machineFingerprint;
|
<< "and machine fingerprint" << nodeConnection.machineFingerprint;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,7 @@ private:
|
||||||
QSet<QString> _inFlightGroupMembershipsRequests; // keep track of which we've already asked for
|
QSet<QString> _inFlightGroupMembershipsRequests; // keep track of which we've already asked for
|
||||||
|
|
||||||
NodePermissions setPermissionsForUser(bool isLocalUser, QString verifiedUsername, const QHostAddress& senderAddress,
|
NodePermissions setPermissionsForUser(bool isLocalUser, QString verifiedUsername, const QHostAddress& senderAddress,
|
||||||
const QString& hardwareAddress, const QUuid& machineFingerprint);
|
const QString& hardwareAddress, const QUuid& machineFingerprint);
|
||||||
|
|
||||||
void getGroupMemberships(const QString& username);
|
void getGroupMemberships(const QString& username);
|
||||||
// void getIsGroupMember(const QString& username, const QUuid groupID);
|
// void getIsGroupMember(const QString& username, const QUuid groupID);
|
||||||
|
|
|
@ -49,7 +49,8 @@ QString FingerprintUtils::getMachineFingerprintString() {
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
IWbemLocator *pLoc = NULL;
|
IWbemLocator *pLoc = NULL;
|
||||||
|
|
||||||
// initialize com
|
// initialize com. Interface already does, but other
|
||||||
|
// users of this lib don't necessarily do so.
|
||||||
hres = CoInitializeEx(0, COINIT_MULTITHREADED);
|
hres = CoInitializeEx(0, COINIT_MULTITHREADED);
|
||||||
if (FAILED(hres)) {
|
if (FAILED(hres)) {
|
||||||
qDebug() << "Failed to initialize COM library!";
|
qDebug() << "Failed to initialize COM library!";
|
||||||
|
|
Loading…
Reference in a new issue