@@ -676,7 +676,7 @@ bool ConnectThroughProxy(const proxyType& proxy, const std::string& strDest, uin
676
676
return true ;
677
677
}
678
678
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)
680
680
{
681
681
if (!ValidAsCString (subnet_str)) {
682
682
return false ;
@@ -686,7 +686,7 @@ bool LookupSubNet(const std::string& subnet_str, CSubNet& subnet_out, DNSLookupF
686
686
const std::string str_addr{subnet_str.substr (0 , slash_pos)};
687
687
CNetAddr addr;
688
688
689
- if (LookupHost (str_addr, addr, /* fAllowLookup=*/ false , dns_lookup_function )) {
689
+ if (LookupHost (str_addr, addr, /* fAllowLookup=*/ false )) {
690
690
if (slash_pos != subnet_str.npos ) {
691
691
const std::string netmask_str{subnet_str.substr (slash_pos + 1 )};
692
692
uint8_t netmask;
@@ -697,7 +697,7 @@ bool LookupSubNet(const std::string& subnet_str, CSubNet& subnet_out, DNSLookupF
697
697
} else {
698
698
// Invalid number; try full netmask syntax. Never allow lookup for netmask.
699
699
CNetAddr full_netmask;
700
- if (LookupHost (netmask_str, full_netmask, /* fAllowLookup=*/ false , dns_lookup_function )) {
700
+ if (LookupHost (netmask_str, full_netmask, /* fAllowLookup=*/ false )) {
701
701
subnet_out = CSubNet{addr, full_netmask};
702
702
return subnet_out.IsValid ();
703
703
}
0 commit comments