about summary refs log tree commit diff
path: root/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'server.c')
-rw-r--r--server.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/server.c b/server.c
index 6cb0611..6280b4d 100644
--- a/server.c
+++ b/server.c
@@ -87,16 +87,18 @@ int main(int argc, char *argv[]) {
 	const char *val;
 	if ((val = getenv(ENV "DATABASE"))) path = val;
 	if ((val = getenv(ENV "GAP"))) eventsGap = strtol(val, NULL, 10);
+	if ((val = getenv(ENV "HIDE_HOST"))) htmlHideHost = (val[0] != '0');
 	if ((val = getenv(ENV "LIMIT"))) eventsLimit = strtol(val, NULL, 10);
 	if ((val = getenv(ENV "OVERLAP"))) eventsOverlap = strtol(val, NULL, 10);
 	if ((val = getenv(ENV "PUBLIC"))) contextsPublic = (val[0] != '0');
 	if ((val = getenv(ENV "RECENT"))) contextsRecent = strtol(val, NULL, 10);
 	if ((val = getenv(ENV "STYLESHEET"))) htmlStylesheet = val;
 
-	for (int opt; 0 < (opt = getopt(argc, argv, "cg:l:o:pr:s:"));) {
+	for (int opt; 0 < (opt = getopt(argc, argv, "cg:hl:o:pr:s:"));) {
 		switch (opt) {
 			break; case 'c': test = true;
 			break; case 'g': eventsGap = strtol(optarg, NULL, 10);
+			break; case 'h': htmlHideHost = true;
 			break; case 'l': eventsLimit = strtol(optarg, NULL, 10);
 			break; case 'o': eventsOverlap = strtol(optarg, NULL, 10);
 			break; case 'p': contextsPublic = true;