mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 00:23:01 +02:00
Fix typo in last commit; remove useless call of getGuessedLocalAddress; logging tweak
This commit is contained in:
parent
c262b7a3b8
commit
d9558e35c3
3 changed files with 3 additions and 4 deletions
|
@ -263,7 +263,7 @@ Connection* Socket::findOrCreateConnection(const HifiSockAddr& sockAddr, bool fi
|
|||
if (filterCreate && _connectionCreationFilterOperator && !_connectionCreationFilterOperator(sockAddr)) {
|
||||
// the connection creation filter did not allow us to create a new connection
|
||||
#ifdef UDT_CONNECTION_DEBUG
|
||||
qCDebug(networking) << "Socket::findOrCreateConnection refusing to create connection for" << sockAddr
|
||||
qCDebug(networking) << "Socket::findOrCreateConnection refusing to create Connection class for" << sockAddr
|
||||
<< "due to connection creation filter";
|
||||
#endif // UDT_CONNECTION_DEBUG
|
||||
return nullptr;
|
||||
|
@ -279,7 +279,7 @@ Connection* Socket::findOrCreateConnection(const HifiSockAddr& sockAddr, bool fi
|
|||
QObject::connect(connection.get(), &Connection::receiverHandshakeRequestComplete,
|
||||
this, &Socket::clientHandshakeRequestComplete);
|
||||
|
||||
qCDebug(networking) << "Creating new connection to" << sockAddr;
|
||||
qCDebug(networking) << "Creating new Connection class for" << sockAddr;
|
||||
|
||||
it = _connectionsHash.insert(it, std::make_pair(sockAddr, std::move(connection)));
|
||||
}
|
||||
|
|
|
@ -56,7 +56,6 @@ static FilePersistThread* _persistThreadInstance;
|
|||
|
||||
QString getLogRollerFilename() {
|
||||
QString result = FileUtils::standardPath(LOGS_DIRECTORY);
|
||||
QHostAddress clientAddress = getGuessedLocalAddress();
|
||||
QDateTime now = QDateTime::currentDateTime();
|
||||
QString fileSessionID;
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <QtNetwork/QNetworkInterface>
|
||||
|
||||
namespace {
|
||||
const QString LINK_LOCAL_SUBNET {"169.154."};
|
||||
const QString LINK_LOCAL_SUBNET {"169.254."};
|
||||
|
||||
// Is address local-subnet valid only (rfc 3927):
|
||||
bool isLinkLocalAddress(const QHostAddress& ip4Addr) {
|
||||
|
|
Loading…
Reference in a new issue