diff options
author | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-06-29 20:37:22 +0200 |
---|---|---|
committer | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-07-02 20:44:27 +0200 |
commit | 177a0e491449b9accfa0cf17c138147539071358 (patch) | |
tree | 163b252ea7c7204017187f1e0e32ce12831fb7f0 /src/netbase.h | |
parent | 409bccfbf52b531b2a9d60ac2308f56223931a2e (diff) |
Adding CSubNet constructor over a single CNetAddr
Diffstat (limited to 'src/netbase.h')
-rw-r--r-- | src/netbase.h | 3 |
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; |