grim/purple-spasm
Clone
Summary
Browse
Changes
Graph
Connect over tls/ssl
2017-05-18, Gary Kramlich
511b1f3fb898
Parents
8151bd6aae79
Children
3c2a35b27899
Connect over tls/ssl
2 files changed, 3 insertions(+), 1 deletions(-)
+2
-0
spasm-chat.c
+1
-1
spasm-const.h
--- a/spasm-chat.c Thu May 18 19:38:28 2017 -0500
+++ b/spasm-chat.c Thu May 18 19:43:51 2017 -0500
@@ -217,6 +217,8 @@
chat->socket_client = g_socket_client_new();
+ g_socket_client_set_tls(chat->socket_client, TRUE);
+
g_socket_client_connect_to_host_async(
chat->socket_client,
PURPLE_SPASM_CHAT_HOSTNAME,
--- a/spasm-const.h Thu May 18 19:38:28 2017 -0500
+++ b/spasm-const.h Thu May 18 19:43:51 2017 -0500
@@ -23,7 +23,7 @@
#define PURPLE_SPASM_PLUGIN_ID "prpl-grim-spasm"
#define PURPLE_SPASM_CHAT_HOSTNAME "irc.chat.twitch.tv"
-#define PURPLE_SPASM_CHAT_PORT 6667
+#define PURPLE_SPASM_CHAT_PORT 443
#define PURPLE_SPASM_BASE_URL "https://api.twitch.tv/kraken/"
#define PURPLE_SPASM_WEBSOCKET_URL "wss://pubsub-edge.twitch.tv"