Default new servers to use TLS if built with OpenSSL.

This commit is contained in:
Sadie Powell
2021-05-23 06:58:18 +01:00
committed by Patrick
parent 1f5c95d9e9
commit 747a52aae8
3 changed files with 14 additions and 5 deletions

View File

@@ -947,6 +947,9 @@ servlist_net_add (char *name, char *comment, int prepend)
net = g_new0 (ircnet, 1);
net->name = g_strdup (name);
net->flags = FLAG_CYCLE | FLAG_USE_GLOBAL | FLAG_USE_PROXY;
#ifdef USE_OPENSSL
net->flags |= FLAG_USE_SSL;
#endif
if (prepend)
network_list = g_slist_prepend (network_list, net);