Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-26042

Agent redirection with proxy groups doesn't work when compiled without TLS

XMLWordPrintable

    • Sprint candidates
    • 0.1

      diff --git a/src/libs/zbxcacheconfig/proxy_group.c b/src/libs/zbxcacheconfig/proxy_group.c
      index 9ba941e25ca..d3f3a32dcaa 100644
      --- a/src/libs/zbxcacheconfig/proxy_group.c
      +++ b/src/libs/zbxcacheconfig/proxy_group.c
      @@ -416,8 +416,8 @@ void        dc_sync_host_proxy(zbx_dbsync_t *sync, zbx_uint64_t revision)
                      {
                              dc_strpool_replace(found, &hp->host, row[2]);
       
      -#if defined(HAVE_GNUTLS) || defined(HAVE_OPENSSL)
                              ZBX_STR2UCHAR(hp->tls_accept, row[6]);
      +#if defined(HAVE_GNUTLS) || defined(HAVE_OPENSSL)
                              dc_strpool_replace(found, &hp->tls_issuer, row[7]);
                              dc_strpool_replace(found, &hp->tls_subject, row[8]);
                              hp->tls_dc_psk = dc_psk_sync(row[9], row[10], hp->host, found, &psk_owners, hp->tls_dc_psk);
      @@ -587,7 +587,7 @@ int dc_get_host_redirect(const char *host, const zbx_tls_conn_attr_t *attr, zbx_
       
              if (0 == ((unsigned int)tls_accept & attr->connection_type))
              {
      -               zabbix_log(LOG_LEVEL_DEBUG, "cannot perform host \"host\" redirection: connection of type \"%s\""
      +               zabbix_log(LOG_LEVEL_DEBUG, "cannot perform host \"%s\" redirection: connection of type \"%s\""
                                      " is not allowed",
                                      host, zbx_tcp_connection_type_name(attr->connection_type));
       
      

            zabbix.dev Zabbix Development Team
            wiper Andris Zeila
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: