Skip to content

Commit fa77fd5

Browse files
committed
Feature: Include config problems in version display
1 parent bb98f34 commit fa77fd5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/admin.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,6 +1879,15 @@ static void command_version (client_t *client, source_t *source, adm
18791879

18801880
reportxml_helper_add_value_flag(rflags, "requested-chroot", icecast_config->chroot);
18811881
reportxml_helper_add_value_flag(rflags, "requested-chuid", icecast_config->chuid);
1882+
1883+
reportxml_helper_add_value_flag(rflags, "cfgp-hostname", icecast_config->config_problems & CONFIG_PROBLEM_HOSTNAME);
1884+
reportxml_helper_add_value_flag(rflags, "cfgp-location", icecast_config->config_problems & CONFIG_PROBLEM_LOCATION);
1885+
reportxml_helper_add_value_flag(rflags, "cfgp-admin", icecast_config->config_problems & CONFIG_PROBLEM_ADMIN);
1886+
reportxml_helper_add_value_flag(rflags, "cfgp-prng", icecast_config->config_problems & CONFIG_PROBLEM_PRNG);
1887+
reportxml_helper_add_value_flag(rflags, "cfgp-node-unknown", icecast_config->config_problems & CONFIG_PROBLEM_UNKNOWN_NODE);
1888+
reportxml_helper_add_value_flag(rflags, "cfgp-node-obsolete", icecast_config->config_problems & CONFIG_PROBLEM_OBSOLETE_NODE);
1889+
reportxml_helper_add_value_flag(rflags, "cfgp-node-invalid", icecast_config->config_problems & CONFIG_PROBLEM_INVALID_NODE);
1890+
reportxml_helper_add_value_flag(rflags, "cfgp-validation", icecast_config->config_problems & CONFIG_PROBLEM_VALIDATION);
18821891
config_release_config();
18831892

18841893
reportxml_node_set_attribute(dependencies, "type", "structure");

0 commit comments

Comments
 (0)