adjust a comment and remove some debug

This commit is contained in:
Stephen Birarda 2017-08-23 16:38:23 -07:00
parent c122b22dfc
commit 133b7e66b7
2 changed files with 1 additions and 3 deletions

View file

@ -486,8 +486,6 @@ bool DomainServer::isPacketVerified(const udt::Packet& packet) {
bool bothPrivateAddresses = nodeData->getSendingSockAddr().hasPrivateAddress()
&& packet.getSenderSockAddr().hasPrivateAddress();
qDebug() << exactAddressMatch << bothPrivateAddresses;
if (nodeData && (exactAddressMatch || bothPrivateAddresses)) {
// to the best of our ability we've verified that this packet comes from the right place
// let the NodeList do its checks now (but pass it the sourceNode so it doesn't need to look it up again)

View file

@ -114,7 +114,7 @@ QString HifiSockAddr::toString() const {
}
bool HifiSockAddr::hasPrivateAddress() const {
// an address is private if it falls in any of the RFC1918 address spaces
// an address is private if it is loopback or falls in any of the RFC1918 address spaces
const QPair<QHostAddress, int> TWENTY_FOUR_BIT_BLOCK = { QHostAddress("10.0.0.0"), 8 };
const QPair<QHostAddress, int> TWENTY_BIT_BLOCK = { QHostAddress("172.16.0.0") , 12 };
const QPair<QHostAddress, int> SIXTEEN_BIT_BLOCK = { QHostAddress("192.168.0.0"), 16 };