Bugfix: Don't check for private IP-Address if we get the actual IP of the host to...
authorBjoern Sikora <bjoern.sikora@intra2net.com>
Fri, 18 Jun 2010 15:14:11 +0000 (17:14 +0200)
committerBjoern Sikora <bjoern.sikora@intra2net.com>
Fri, 18 Jun 2010 15:14:11 +0000 (17:14 +0200)
Otherwise, if the hosts actual address is within a private range, there will be no update.

src/ip_addr_helper.cpp

index 7589405..5d49a21 100644 (file)
@@ -324,10 +324,10 @@ string IPAddrHelper::dns_query(const string& _hostname) const
                 Log->print_own_ipv4(ipv4_addr, hostname);
 
                 // If it is not a local address then push it in the external ipv4 address list.
-                if ( !is_local_ipv4(ipv4_addr) )
+                //if ( !is_local_ipv4(ipv4_addr) )
                     external_ipv4_addresses.push_back(ipv4_addr);
-                else
-                    Log->print_ip_is_local(ipv4_addr);
+                //else
+                //    Log->print_ip_is_local(ipv4_addr);
             }
             // Test if it is a IPv6 address and if IPv6 is enabled.
             else if ( (ip.is_v6()) && (UseIPv6) )
@@ -338,10 +338,10 @@ string IPAddrHelper::dns_query(const string& _hostname) const
                 Log->print_own_ipv6(ipv6_addr, hostname);
 
                 // If it is not a local address then push it in the external ipv6 address list.
-                if ( !is_local_ipv6(ipv6_addr) )
+                //if ( !is_local_ipv6(ipv6_addr) )
                     external_ipv6_addresses.push_back(ipv6_addr);
-                else
-                    Log->print_ip_is_local(ipv6_addr);
+                //else
+                //    Log->print_ip_is_local(ipv6_addr);
             }
             endpoint_iterator++;
         }