Improve local endpoint hostname lookup performance
@@ -865,6 +865,7 @@ VOID PhNetworkProviderUpdate(
// Get host names.
// Local
+ if (!PhIsNullIpAddress(&networkItem->LocalEndpoint.Address))
{
PhAcquireQueuedLockShared(&PhpResolveCacheHashtableLock);
cacheItem = PhpLookupResolveCacheItem(&networkItem->LocalEndpoint.Address);
@@ -881,6 +882,10 @@ VOID PhNetworkProviderUpdate(
PhpQueueNetworkItemQuery(networkItem, FALSE);
}
}
+ else
+ {
+ networkItem->LocalHostnameResolved = TRUE;
+ }
// Remote
if (!PhIsNullIpAddress(&networkItem->RemoteEndpoint.Address))
