shithub: neinchat

Download patch

ref: e6b34aae9701ee0f54ea60d974eeb87058e464db
parent: 62f992b9b69dc0d2d4c95364def709eb5ad15ac7
author: Peter Mikkelsen <[email protected]>
date: Fri Feb 12 18:56:08 EST 2021

Serve over tcp and don't mount by default

--- a/main.c
+++ b/main.c
@@ -55,12 +55,12 @@
 		.read = fsread,
 		.write = fswrite,
 	};
-
-	chatty9p = 1;
-	char *mountpoint = "/mnt/neinchat";
+	char *postname = "neinchat";
+	char *addr = "tcp!*!12345";
 	username = getuser();
-	print("Starting neinchat server on %s\n", mountpoint);
-	postmountsrv(&fs, "neinchat", mountpoint, MREPL|MCREATE);
+	print("Starting neinchat server on %s and posting to /srv/%s\n", addr, postname);
+	listensrv(&fs, addr);
+	postmountsrv(&fs, "neinchat", nil, MREPL|MCREATE);
 	exits(nil);
 }