diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-04-06 16:25:50 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-04-06 16:25:50 +0200 |
commit | e5f96b0564a63fff73485dd552dfaefe534ed080 (patch) | |
tree | a01ff4d648704ef2fdbb025483356de20100addb /src/cidr.cpp | |
parent | dcff3882021cd2b1169d0f3e0dfc7fe2b95285a6 (diff) |
Fix IPv6 address handling in 6aaf7047297b739377e7d509cb914f32447fb281
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 a4a252a48..333875665 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("0123456789.:") < per_pos)) + || (cidr_copy.find_first_not_of("0123456789abcdef.:") < per_pos)) { // The CIDR mask is invalid return false; |