/* Check if allowed config changed and something needs to be disabled.  */
static void check_disable()
/* Check if allowed config changed and something needs to be disabled.  */
static void check_disable()
{
        metric_handler_syslog_configure("", 0);
        syslog_configure("", 0);
    } else if (metrics_allow == MetricsAllow::One) {
        if (strcmp(metric_handler_syslog_get_host(), config_store().metrics_host.get_c_str()) != 0
            || metric_handler_syslog_get_port() != config_store().metrics_port.get()) {
            metric_handler_syslog_configure("", 0);
        }
        if (strcmp(syslog_get_host(), config_store().metrics_host.get_c_str()) != 0
            || syslog_get_port() != config_store().syslog_port.get()) {
            syslog_configure("", 0);
        }
    }
}