From: Bjoern Sikora Date: Fri, 18 Jun 2010 15:14:11 +0000 (+0200) Subject: Bugfix: Don't check for private IP-Address if we get the actual IP of the host to... X-Git-Tag: v1.1~99 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=2f83caa3315117f25609b2669f118e69fdc0d091;p=bpdyndnsd Bugfix: Don't check for private IP-Address if we get the actual IP of the host to update. Otherwise, if the hosts actual address is within a private range, there will be no update. --- diff --git a/src/ip_addr_helper.cpp b/src/ip_addr_helper.cpp index 7589405..5d49a21 100644 --- a/src/ip_addr_helper.cpp +++ b/src/ip_addr_helper.cpp @@ -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++; }