Commit 9401ae94 authored by Sergei Golubchik's avatar Sergei Golubchik

don't use https url by default, if ssl is not available

parent 4c34bcf8
...@@ -298,6 +298,12 @@ static int free(void *p) ...@@ -298,6 +298,12 @@ static int free(void *p)
return 0; return 0;
} }
#ifdef HAVE_OPENSSL
#define DEFAULT_PROTO "https://"
#else
#define DEFAULT_PROTO "http://"
#endif
static MYSQL_SYSVAR_STR(server_uid, server_uid, static MYSQL_SYSVAR_STR(server_uid, server_uid,
PLUGIN_VAR_READONLY | PLUGIN_VAR_NOCMDOPT, PLUGIN_VAR_READONLY | PLUGIN_VAR_NOCMDOPT,
"Automatically calculated server unique id hash.", NULL, NULL, 0); "Automatically calculated server unique id hash.", NULL, NULL, 0);
...@@ -307,7 +313,7 @@ static MYSQL_SYSVAR_STR(user_info, user_info, ...@@ -307,7 +313,7 @@ static MYSQL_SYSVAR_STR(user_info, user_info,
NULL, NULL, ""); NULL, NULL, "");
static MYSQL_SYSVAR_STR(url, url, PLUGIN_VAR_READONLY | PLUGIN_VAR_RQCMDARG, static MYSQL_SYSVAR_STR(url, url, PLUGIN_VAR_READONLY | PLUGIN_VAR_RQCMDARG,
"Space separated URLs to send the feedback report to.", NULL, NULL, "Space separated URLs to send the feedback report to.", NULL, NULL,
"https://mariadb.org/feedback_plugin/post"); DEFAULT_PROTO "mariadb.org/feedback_plugin/post");
static MYSQL_SYSVAR_ULONG(send_timeout, send_timeout, PLUGIN_VAR_RQCMDARG, static MYSQL_SYSVAR_ULONG(send_timeout, send_timeout, PLUGIN_VAR_RQCMDARG,
"Timeout (in seconds) for the sending the report.", "Timeout (in seconds) for the sending the report.",
NULL, NULL, 60, 1, 60*60*24, 1); NULL, NULL, 60, 1, 60*60*24, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment