mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-11-24 02:46:36 +01:00
Ignore blank lines too
This commit is contained in:
parent
4ffd2531fe
commit
9705d742e9
@ -631,7 +631,13 @@ bool load_configuration_file() {
|
||||
}
|
||||
|
||||
while ( getline(config_file, line) ) {
|
||||
std::vector<std::string> parsed_config;
|
||||
std::vector<std::string> parsed_config;
|
||||
|
||||
if (line.find("#") == 0 or line.empty()) {
|
||||
// Ignore comments line
|
||||
continue;
|
||||
}
|
||||
|
||||
boost::split( parsed_config, line, boost::is_any_of(" ="), boost::token_compress_on );
|
||||
|
||||
if (parsed_config.size() == 2) {
|
||||
|
Loading…
Reference in New Issue
Block a user