diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-04-13 16:02:07 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-04-13 16:02:07 +0200 |
commit | d42408a299f62cd01385215a0c6df96db05bf301 (patch) | |
tree | cb3cc63a7a88177479c5550b21b6be7b87e6735f /src/cidr.cpp | |
parent | 91c34d4e971dcc9370d205ff6d8189cd92f1d556 (diff) |
Allow uppercase letters in IPv6 CIDR masks
Diffstat (limited to 'src/cidr.cpp')
-rw-r--r-- | src/cidr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cidr.cpp b/src/cidr.cpp index 333875665..b245a1552 100644 --- a/src/cidr.cpp +++ b/src/cidr.cpp @@ -68,7 +68,7 @@ bool irc::sockets::MatchCIDR(const std::string &address, const std::string &cidr const std::string::size_type per_pos = cidr_copy.rfind('/'); if ((per_pos == std::string::npos) || (per_pos == cidr_copy.length()-1) || (cidr_copy.find_first_not_of("0123456789", per_pos+1) != std::string::npos) - || (cidr_copy.find_first_not_of("0123456789abcdef.:") < per_pos)) + || (cidr_copy.find_first_not_of("0123456789abcdefABCDEF.:") < per_pos)) { // The CIDR mask is invalid return false; |