Changeset 1548

Show
Ignore:
Timestamp:
02/14/08 12:18:18 (7 months ago)
Author:
common
Message:

nepenthes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/nepenthes-core/src/DownloadManager.cpp

    r1487 r1548  
    279279bool DownloadManager::isLocalAddress(uint32_t ulAddress) 
    280280{ 
    281         if ( !ulAddress || ulAddress == 0xFFFFFFFF ) 
    282                 return false; // not an ip 
    283  
    284281        for ( uint32_t i = 0; i < sizeof(m_irLocalRanges) / sizeof(ip_range_t); i++ ) 
    285282                if ( (ulAddress & m_irLocalRanges[i].m_ulMask) == m_irLocalRanges[i].m_ulAddress ) 
     
    331328                                return false; 
    332329                        } 
    333  
    334  
    335                 } 
    336                 else 
    337                 { 
    338                         if ( ulAddress == 0 && m_ReplaceLocalIps ) // replace 0.0.0.0 
    339                         { 
    340                                 bReplaceHost = true; 
    341                         } 
    342330                } 
    343331