MXS-1553: Enforce SSL usage for monitors

If a server is configured to use SSL, then MaxScale should respect the
configuration and refuse to use a connection that is not encrypted.
This commit is contained in:
Markus Mäkelä
2017-12-01 03:50:57 +02:00
parent 8cce2b4b99
commit 96d9c47016
3 changed files with 20 additions and 0 deletions

View File

@ -140,6 +140,9 @@ SERVER* server_alloc(const char *name, const char *address, unsigned short port,
server->created_online = false;
server->charset = SERVER_DEFAULT_CHARSET;
// Log all warnings once
memset(&server->log_warning, 1, sizeof(server->log_warning));
spinlock_acquire(&server_spin);
server->next = allServers;
allServers = server;