Commit:e6b34aae9701ee0f54ea60d974eeb87058e464db (browse)
Parent:62f992b9b69dc0d2d4c95364def709eb5ad15ac7
Author:Peter Mikkelsen <petermikkelsen10@gmail.com>
Date:Sat Feb 13 00:56:08 CET 2021
Message:
Serve over tcp and don't mount by default

main.c => 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);
 }