diff --git a/blacklist.cpp b/blacklist.cpp index ec3f8c6..215ec8f 100644 --- a/blacklist.cpp +++ b/blacklist.cpp @@ -613,18 +613,27 @@ inline bool findIpInFile(const char *filename, string ip) ifstream File(filename); if(!File.is_open()) { + cout << "error while opening file" << endl; return false; } string line = ""; + int iFound = 0; while(getline(File, line)) { if(boost::iequals(ip, line) == true) { - //cout << ip << " found in " << filename << "!" << endl; + //cout << ip << " found in " << filename << endl; + cout << "Found." << endl; + iFound = 1; return true; } } + if(iFound == 0) + { + cout << "Not found." << endl; + //cout << ip << " not found in " << filename << endl; + } File.close(); return false; } diff --git a/version.h b/version.h index f4d26b5..9ed78cc 100644 --- a/version.h +++ b/version.h @@ -7,7 +7,7 @@ namespace Version{ static const char STATUS[] = "Release Candidate [chronos-vs]"; //Miscellaneous Version Types - static const char VERSION_STRING [] = "0.5"; + static const char VERSION_STRING [] = "0.5.2"; //Copyright line usable in the program static const char COPYRIGHT [] = "Copyright ©2015-2022 Dominic Reich\n";