aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.cpp
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2021-12-07 12:56:02 +0100
committerJon Atack <jon@atack.com>2021-12-07 13:13:18 +0100
commitc44c20108f7b7314f59f034110789385a24db280 (patch)
treef58f1458ab93e6ba3144c9f1c6b4b68f86f67a9f /src/netbase.cpp
parentf0c9e68080432c1ab11b14e571b8dfb7cfe727f8 (diff)
p2p, refactor: drop unused DNSLookupFn param in LookupSubnet()
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r--src/netbase.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp
index 5d7d45f2ef..0b68c0d041 100644
--- a/src/netbase.cpp
+++ b/src/netbase.cpp
@@ -676,7 +676,7 @@ bool ConnectThroughProxy(const proxyType& proxy, const std::string& strDest, uin
return true;
}
-bool LookupSubNet(const std::string& subnet_str, CSubNet& subnet_out, DNSLookupFn dns_lookup_function)
+bool LookupSubNet(const std::string& subnet_str, CSubNet& subnet_out)
{
if (!ValidAsCString(subnet_str)) {
return false;
@@ -686,7 +686,7 @@ bool LookupSubNet(const std::string& subnet_str, CSubNet& subnet_out, DNSLookupF
const std::string str_addr{subnet_str.substr(0, slash_pos)};
CNetAddr addr;
- if (LookupHost(str_addr, addr, /*fAllowLookup=*/false, dns_lookup_function)) {
+ if (LookupHost(str_addr, addr, /*fAllowLookup=*/false)) {
if (slash_pos != subnet_str.npos) {
const std::string netmask_str{subnet_str.substr(slash_pos + 1)};
uint8_t netmask;
@@ -697,7 +697,7 @@ bool LookupSubNet(const std::string& subnet_str, CSubNet& subnet_out, DNSLookupF
} else {
// Invalid number; try full netmask syntax. Never allow lookup for netmask.
CNetAddr full_netmask;
- if (LookupHost(netmask_str, full_netmask, /*fAllowLookup=*/false, dns_lookup_function)) {
+ if (LookupHost(netmask_str, full_netmask, /*fAllowLookup=*/false)) {
subnet_out = CSubNet{addr, full_netmask};
return subnet_out.IsValid();
}