1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

fix reading of old config ssl_verify key

This commit is contained in:
Ailin Nemui 2021-08-30 18:43:50 +02:00
parent 4001871552
commit e10e1c2da7

View File

@ -484,8 +484,9 @@ static SERVER_SETUP_REC *server_setup_read(CONFIG_NODE *node)
rec->password = g_strdup(config_node_get_str(node, "password", NULL)); rec->password = g_strdup(config_node_get_str(node, "password", NULL));
rec->use_tls = config_node_get_bool(node, "use_tls", FALSE) || config_node_get_bool(node, "use_ssl", FALSE); rec->use_tls = config_node_get_bool(node, "use_tls", FALSE) || config_node_get_bool(node, "use_ssl", FALSE);
rec->tls_verify = config_node_get_bool(node, "tls_verify", TRUE) || rec->tls_verify = config_node_find(node, "tls_verify") != NULL ?
config_node_get_bool(node, "ssl_verify", FALSE); config_node_get_bool(node, "tls_verify", TRUE) :
config_node_get_bool(node, "ssl_verify", TRUE);
value = config_node_get_str(node, "tls_cert", NULL); value = config_node_get_str(node, "tls_cert", NULL);
if (value == NULL) if (value == NULL)