--- a/src/nexus.c Sat Feb 28 19:08:51 2009 +0200
+++ b/src/nexus.c Sat Feb 28 19:58:49 2009 +0200
@@ -12,8 +12,8 @@
#include "sock.h"
#include "line_proto.h"
-#define CONNECT_HOST "localhost"
-#define CONNECT_SERV "5002"
+#define CONNECT_HOST "irc.fixme.fi"
+#define CONNECT_SERV "6697"
#define LINE_LENGTH 512
void on_line (const char *line, void *arg) {
@@ -35,7 +35,7 @@
errx(1, "sock_init: %s", error_msg(&_err));
// over-simplified connect
- if (sock_tcp_connect(&sock, CONNECT_HOST, CONNECT_SERV, &_err))
+ if (sock_ssl_connect(&sock, CONNECT_HOST, CONNECT_SERV, &_err))
errx(1, "sock_gnutls_connect: %s", error_msg(&_err));
// line protocol, with safety margin for buffer