Commit 29680ec6 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Allow the use of bools for <logarchive>

parent 5257fcaa
...@@ -2286,7 +2286,13 @@ static void _parse_logging(xmlDocPtr doc, ...@@ -2286,7 +2286,13 @@ static void _parse_logging(xmlDocPtr doc,
if (tmp) if (tmp)
xmlFree(tmp); xmlFree(tmp);
} else if (xmlStrcmp(node->name, XMLSTR("logarchive")) == 0) { } else if (xmlStrcmp(node->name, XMLSTR("logarchive")) == 0) {
__read_int(doc, node, &configuration->logarchive, "<logarchive> must not be empty."); char *tmp = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1);
configuration->logarchive = util_str_to_bool(tmp);
if (tmp) {
xmlFree(tmp);
} else {
ICECAST_LOG_WARN("<logarchive> must not be empty.");
}
} }
} while ((node = node->next)); } while ((node = node->next));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment