@@ -676,7 +676,7 @@ bool ConnectThroughProxy(const proxyType& proxy, const std::string& strDest, uin
676676 return true ;
677677}
678678
679- bool LookupSubNet (const std::string& subnet_str, CSubNet& subnet_out, DNSLookupFn dns_lookup_function )
679+ bool LookupSubNet (const std::string& subnet_str, CSubNet& subnet_out)
680680{
681681 if (!ValidAsCString (subnet_str)) {
682682 return false ;
@@ -686,7 +686,7 @@ bool LookupSubNet(const std::string& subnet_str, CSubNet& subnet_out, DNSLookupF
686686 const std::string str_addr{subnet_str.substr (0 , slash_pos)};
687687 CNetAddr addr;
688688
689- if (LookupHost (str_addr, addr, /* fAllowLookup=*/ false , dns_lookup_function )) {
689+ if (LookupHost (str_addr, addr, /* fAllowLookup=*/ false )) {
690690 if (slash_pos != subnet_str.npos ) {
691691 const std::string netmask_str{subnet_str.substr (slash_pos + 1 )};
692692 uint8_t netmask;
@@ -697,7 +697,7 @@ bool LookupSubNet(const std::string& subnet_str, CSubNet& subnet_out, DNSLookupF
697697 } else {
698698 // Invalid number; try full netmask syntax. Never allow lookup for netmask.
699699 CNetAddr full_netmask;
700- if (LookupHost (netmask_str, full_netmask, /* fAllowLookup=*/ false , dns_lookup_function )) {
700+ if (LookupHost (netmask_str, full_netmask, /* fAllowLookup=*/ false )) {
701701 subnet_out = CSubNet{addr, full_netmask};
702702 return subnet_out.IsValid ();
703703 }
0 commit comments