aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.h
diff options
context:
space:
mode:
authorJonas Schnelli <jonas.schnelli@include7.ch>2015-06-29 20:37:22 +0200
committerJonas Schnelli <jonas.schnelli@include7.ch>2015-07-02 20:44:27 +0200
commit177a0e491449b9accfa0cf17c138147539071358 (patch)
tree163b252ea7c7204017187f1e0e32ce12831fb7f0 /src/netbase.h
parent409bccfbf52b531b2a9d60ac2308f56223931a2e (diff)
Adding CSubNet constructor over a single CNetAddr
Diffstat (limited to 'src/netbase.h')
-rw-r--r--src/netbase.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/netbase.h b/src/netbase.h
index 48c2d3455e..6f8882b852 100644
--- a/src/netbase.h
+++ b/src/netbase.h
@@ -118,6 +118,9 @@ class CSubNet
CSubNet();
explicit CSubNet(const std::string &strSubnet, bool fAllowLookup = false);
+ //constructor for single ip subnet (<ipv4>/32 or <ipv6>/128)
+ explicit CSubNet(const CNetAddr &addr);
+
bool Match(const CNetAddr &addr) const;
std::string ToString() const;