Commit b2526d38 authored by Seblu's avatar Seblu
Browse files

Autorisation des commenaires (#) et des lignes vides dans les fichiers de conf

parent 64bdf7e7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -133,6 +133,11 @@ Options Options::getoptions(const string file) {
    if (fs.eof())
      break;
    ++i;

    // jump empty line
    if (*line == '#' || *line == 0)
      continue;

    sscanf(line, "%10[^=]=%2039s\n", name, value); //TODO: fix magic number

    if (!strcasecmp(name, "host"))