]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cidr.cpp
Switch <stdint.h> test to use a test file too.
[user/henk/code/inspircd.git] / src / cidr.cpp
index 3338756655b6e8e5f2e42abe0c1545e90969ce00..b245a15527e7a25077f855ceae2df3c0be33e52c 100644 (file)
@@ -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;