mirror of
https://github.com/irssi/irssi.git
synced 2026-08-22 01:52:19 +02:00
disable tls when using -notls
only set port if it's set or tls/notls is used revert port changes
This commit is contained in:
parent
fb85fdec5c
commit
2a7be842ae
1 changed files with 5 additions and 0 deletions
|
|
@ -172,6 +172,11 @@ static void cmd_server_add_modify(const char *data, gboolean add)
|
||||||
rec->use_tls = FALSE;
|
rec->use_tls = FALSE;
|
||||||
/* tls_verify implies use_tls, disable it explicitly */
|
/* tls_verify implies use_tls, disable it explicitly */
|
||||||
rec->tls_verify = FALSE;
|
rec->tls_verify = FALSE;
|
||||||
|
/* explicitly null tls_cafile and tls_capath if we don't use tls */
|
||||||
|
if (rec->tls_cafile != NULL)
|
||||||
|
g_free_and_null(rec->tls_cafile);
|
||||||
|
if (rec->tls_capath != NULL)
|
||||||
|
g_free_and_null(rec->tls_capath);
|
||||||
}
|
}
|
||||||
|
|
||||||
value = g_hash_table_lookup(optlist, "tls_cert");
|
value = g_hash_table_lookup(optlist, "tls_cert");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue