#include <proto/ssl_sock.h>
#endif
+#ifdef USE_DEVICEATLAS
+#include <import/da.h>
+#endif
+
/*********************************************************************/
extern const struct comp_algo comp_algos[];
#ifdef DEFAULT_MAXSSLCONN
.maxsslconn = DEFAULT_MAXSSLCONN,
#endif
+#endif
+#ifdef USE_DEVICEATLAS
+ .deviceatlas = {
+ .loglevel = DA_SEV_INFO,
+ .useragentid = 0,
+ .jsonpath = 0,
+ .separator = '|',
+ },
#endif
/* others NULL OK */
};
/* Initialise lua. */
hlua_init();
+#if defined(USE_DEVICEATLAS)
+ /* Register deviceatlas config keywords */
+ da_register_cfgkeywords();
+#endif
global.tune.options |= GTUNE_USE_SELECT; /* select() is always available */
#if defined(ENABLE_POLL)
/* now we know the buffer size, we can initialize the channels and buffers */
init_buffer();
+#if defined(USE_DEVICEATLAS)
+ init_deviceatlas();
+#endif
if (have_appsession)
appsession_init();
protocol_unbind_all();
+#if defined(USE_DEVICEATLAS)
+ deinit_deviceatlas();
+#endif
+
free(global.log_send_hostname); global.log_send_hostname = NULL;
free(global.log_tag); global.log_tag = NULL;
free(global.chroot); global.chroot = NULL;