Skip to content

Commit

Permalink
*-login: Fix non-global ssl=no configuration
Browse files Browse the repository at this point in the history
For example local 127.0.0.2 { ssl=no } wasn't working.
  • Loading branch information
sirainen committed May 18, 2018
1 parent 6da6b83 commit b2daefb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/login-common/client-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,11 @@ int client_init_ssl(struct client *client)

i_assert(client->fd != -1);

if (strcmp(client->ssl_set->ssl, "no") == 0) {
client_log(client, "SSL is disabled (ssl=no)");
return -1;
}

master_service_ssl_settings_to_iostream_set(client->ssl_set,
pool_datastack_create(),
MASTER_SERVICE_SSL_SETTINGS_TYPE_SERVER, &ssl_set);
Expand Down

0 comments on commit b2daefb

Please sign in to comment.