mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 15:42:26 +02:00
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
This commit is contained in:
parent
13effe87e4
commit
1539cf81f3
14 changed files with 392 additions and 12 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue