commit f34117050041a0b5dc7e918a90e0aa6726c4c38d
parent 77afdb1f9663d3872e048faf15026f33d0ce11c3
Author: Andrew Kloet <andrew@kloet.net>
Date: Fri, 27 Mar 2026 14:16:03 -0400
make tls default
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/nio.1 b/nio.1
@@ -7,7 +7,7 @@
.
.Sh SYNOPSIS
.Nm nio
-.Op Fl ht
+.Op Fl hT
.Op Fl l Ar logfile
.Op Fl n Ar nick
.Op Fl p Ar port
diff --git a/nio.c b/nio.c
@@ -31,7 +31,7 @@
#define PFMT " %-12s < %s"
#define PFMTHIGH "> %-12s < %s"
#define SRV "irc.oftc.net"
-#define PORT "6667"
+#define PORT "6697"
enum {
ChanLen = 64,
@@ -63,7 +63,7 @@ static struct Chan {
char join; /* Channel was 'j'-oined. */
} chl[MaxChans];
-static int ssl;
+static int ssl = 1;
static struct {
int fd;
SSL *ssl;
@@ -834,8 +834,8 @@ main(int argc, char *argv[])
goto usage;
strcpy(nick, optarg);
break;
- case 't':
- ssl = 1;
+ case 'T':
+ ssl = 0;
break;
case 'u':
user = optarg;