mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
adjust a comment and remove some debug
This commit is contained in:
parent
c122b22dfc
commit
133b7e66b7
2 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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 };
|
||||
|
|
Loading…
Reference in a new issue