From fa77fd5c2a0ac34786f9fddc8f52891d72fa9ca0 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Sat, 12 Mar 2022 09:55:04 +0000 Subject: [PATCH] Feature: Include config problems in version display --- src/admin.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/admin.c b/src/admin.c index d0c16fe3..1d784fbf 100644 --- a/src/admin.c +++ b/src/admin.c @@ -1879,6 +1879,15 @@ static void command_version (client_t *client, source_t *source, adm reportxml_helper_add_value_flag(rflags, "requested-chroot", icecast_config->chroot); reportxml_helper_add_value_flag(rflags, "requested-chuid", icecast_config->chuid); + + reportxml_helper_add_value_flag(rflags, "cfgp-hostname", icecast_config->config_problems & CONFIG_PROBLEM_HOSTNAME); + reportxml_helper_add_value_flag(rflags, "cfgp-location", icecast_config->config_problems & CONFIG_PROBLEM_LOCATION); + reportxml_helper_add_value_flag(rflags, "cfgp-admin", icecast_config->config_problems & CONFIG_PROBLEM_ADMIN); + reportxml_helper_add_value_flag(rflags, "cfgp-prng", icecast_config->config_problems & CONFIG_PROBLEM_PRNG); + reportxml_helper_add_value_flag(rflags, "cfgp-node-unknown", icecast_config->config_problems & CONFIG_PROBLEM_UNKNOWN_NODE); + reportxml_helper_add_value_flag(rflags, "cfgp-node-obsolete", icecast_config->config_problems & CONFIG_PROBLEM_OBSOLETE_NODE); + reportxml_helper_add_value_flag(rflags, "cfgp-node-invalid", icecast_config->config_problems & CONFIG_PROBLEM_INVALID_NODE); + reportxml_helper_add_value_flag(rflags, "cfgp-validation", icecast_config->config_problems & CONFIG_PROBLEM_VALIDATION); config_release_config(); reportxml_node_set_attribute(dependencies, "type", "structure");