X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcidr.cpp;h=b245a15527e7a25077f855ceae2df3c0be33e52c;hb=fc4fc43ec232407b38d7ca182cb92c5cac4287aa;hp=a4a252a48cefcc25acb10a7c82736b5bac835bdf;hpb=6aaf7047297b739377e7d509cb914f32447fb281;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cidr.cpp b/src/cidr.cpp index a4a252a48..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("0123456789.:") < per_pos)) + || (cidr_copy.find_first_not_of("0123456789abcdefABCDEF.:") < per_pos)) { // The CIDR mask is invalid return false;