From: Ensar Sarajčić Date: Thu, 6 Jun 2024 07:31:14 +0000 (+0200) Subject: Remove comment functionality from ignore list file X-Git-Tag: rec-5.2.0-alpha0~19^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b2cb66093875dbc2d44d47b406dfb8d502f1695;p=thirdparty%2Fpdns.git Remove comment functionality from ignore list file This is done to keep the file as simple as possible. --- diff --git a/pdns/recursordist/rec-main.cc b/pdns/recursordist/rec-main.cc index 6781faff1b..18ada2b75e 100644 --- a/pdns/recursordist/rec-main.cc +++ b/pdns/recursordist/rec-main.cc @@ -877,15 +877,6 @@ static void parseIgnorelistFile(const std::string& fname, SuffixMatchNode& match } while (getline(ignorelistFileStream, line)) { - // strip everything after a # - string::size_type pos = line.find('#'); - if (pos != string::npos) { - // make sure it's either first char or has whitespace before - if (pos == 0 || (std::isspace(line[pos - 1]) != 0)) { - line = line.substr(0, pos); - } - } - boost::trim(line); matchNode.add(DNSName(line));