1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
Index: irssi-0.8.14/src/core/servers.c
===================================================================
--- irssi-0.8.14.orig/src/core/servers.c
+++ irssi-0.8.14/src/core/servers.c
@@ -209,6 +209,7 @@
char *errmsg2;
char ipaddr[MAX_IP_LEN];
int port;
+ char *hostname;
g_return_if_fail(ip != NULL || unix_socket != NULL);
@@ -223,8 +224,10 @@
server->connrec->own_ip4);
port = server->connrec->proxy != NULL ?
server->connrec->proxy_port : server->connrec->port;
+ hostname = server->connrec->proxy != NULL ?
+ server->connrec->proxy : server->connrec->address;
handle = server->connrec->use_ssl ?
- net_connect_ip_ssl(ip, port, server->connrec->address, own_ip, server->connrec->ssl_cert, server->connrec->ssl_pkey,
+ net_connect_ip_ssl(ip, port, hostname, own_ip, server->connrec->ssl_cert, server->connrec->ssl_pkey,
server->connrec->ssl_cafile, server->connrec->ssl_capath, server->connrec->ssl_verify) :
net_connect_ip(ip, port, own_ip);
} else {
|