summaryrefslogtreecommitdiff
path: root/source/n/irssi/irssi.ssl_proxy.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/irssi/irssi.ssl_proxy.diff')
-rw-r--r--source/n/irssi/irssi.ssl_proxy.diff24
1 files changed, 24 insertions, 0 deletions
diff --git a/source/n/irssi/irssi.ssl_proxy.diff b/source/n/irssi/irssi.ssl_proxy.diff
new file mode 100644
index 00000000..401e0717
--- /dev/null
+++ b/source/n/irssi/irssi.ssl_proxy.diff
@@ -0,0 +1,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 {