summaryrefslogtreecommitdiff
path: root/src/core/servers.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-08-26 19:32:15 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-08-26 19:32:15 +0000
commit1539cf81f3642c5afd1267b3adc4fc2d46308ceb (patch)
tree9e2fbd8c9d66bb9efb11c50bfdcd04c79873771b /src/core/servers.c
parent13effe87e4d81f4b66b0b9759cf09bab7b631fcb (diff)
downloadirssi-1539cf81f3642c5afd1267b3adc4fc2d46308ceb.zip
Added OpenSSL support by vjt@users.sf.net. Also fixes a possible crash after
using /SERVER ADD -ircnet. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2890 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/servers.c')
-rw-r--r--src/core/servers.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/servers.c b/src/core/servers.c
index f26481d5..6bd843af 100644
--- a/src/core/servers.c
+++ b/src/core/servers.c
@@ -178,13 +178,18 @@ static void server_real_connect(SERVER_REC *server, IPADDR *ip,
server->connrec->own_ip4);
port = server->connrec->proxy != NULL ?
server->connrec->proxy_port : server->connrec->port;
- handle = net_connect_ip(ip, port, own_ip);
+ handle = server->connrec->use_ssl ?
+ net_connect_ip_ssl(ip, port, own_ip) :
+ net_connect_ip(ip, port, own_ip);
} else {
handle = net_connect_unix(unix_socket);
}
if (handle == NULL) {
/* failed */
+ if (server->connrec->use_ssl && errno == ENOSYS)
+ server->no_reconnect = TRUE;
+
server->connection_lost = TRUE;
server_connect_failed(server, g_strerror(errno));
} else {