mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 08:43:52 +02:00
remove TODO added for DS, check sockets
This commit is contained in:
parent
8a2bb55231
commit
8ff8a17f02
1 changed files with 6 additions and 1 deletions
|
@ -579,9 +579,9 @@ const NodeSet STATICALLY_ASSIGNED_NODES = NodeSet() << NodeType::AudioMixer
|
||||||
void DomainServer::processConnectRequestPacket(QSharedPointer<NLPacket> packet) {
|
void DomainServer::processConnectRequestPacket(QSharedPointer<NLPacket> packet) {
|
||||||
NodeType_t nodeType;
|
NodeType_t nodeType;
|
||||||
HifiSockAddr publicSockAddr, localSockAddr;
|
HifiSockAddr publicSockAddr, localSockAddr;
|
||||||
|
|
||||||
|
|
||||||
if (packet->getPayloadSize() == 0) {
|
if (packet->getPayloadSize() == 0) {
|
||||||
// TODO: We know what size the connect packet should be (minimally) - check for that here
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -593,6 +593,11 @@ void DomainServer::processConnectRequestPacket(QSharedPointer<NLPacket> packet)
|
||||||
const HifiSockAddr& senderSockAddr = packet->getSenderSockAddr();
|
const HifiSockAddr& senderSockAddr = packet->getSenderSockAddr();
|
||||||
|
|
||||||
parseNodeData(packetStream, nodeType, publicSockAddr, localSockAddr, senderSockAddr);
|
parseNodeData(packetStream, nodeType, publicSockAddr, localSockAddr, senderSockAddr);
|
||||||
|
|
||||||
|
if (localSockAddr.isNull() || senderSockAddr.isNull()) {
|
||||||
|
qDebug() << "Unexpected data received for node local socket or public socket. Will not allow connection.";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// check if this connect request matches an assignment in the queue
|
// check if this connect request matches an assignment in the queue
|
||||||
bool isAssignment = _pendingAssignedNodes.contains(connectUUID);
|
bool isAssignment = _pendingAssignedNodes.contains(connectUUID);
|
||||||
|
|
Loading…
Reference in a new issue