removed assert that does not make sense and is often violated
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 21 Jan 2015 12:51:16 +0000 (13:51 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 21 Jan 2015 12:51:16 +0000 (13:51 +0100)
(IPs are not updated very often, so can easily happen that an IP's TTL was reached.
 It is easier to ignore these cases than to avoid them, IPs will with next test be updated.)

src/dns/dnsresolver.cpp

index cf997b1..58f18bc 100644 (file)
@@ -151,13 +151,11 @@ string DnsResolver::get_next_ip()
 
     HostAddress host_address = ResolvedHostAddressList.front();
     string destination_ip = host_address.get_ip().to_string();
-    uint32_t ttl = host_address.get_ttl().get_updated_value();
 
     rotate( ResolvedHostAddressList.begin(), ++ResolvedHostAddressList.begin(), ResolvedHostAddressList.end() );
 
     size_t list_size_after = ResolvedHostAddressList.size();
 
-    BOOST_ASSERT( 0 < ttl );
     BOOST_ASSERT( list_size_before == list_size_after );
 
     return destination_ip;