projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented and documented a '-g' option for WebCit to enable a default landing page...
[citadel.git]
/
webcit
/
webserver.c
diff --git
a/webcit/webserver.c
b/webcit/webserver.c
index 07b3e9645c67d62d4947438a951bf0651af2c04e..ef1c5eb8e66cd4ef1b19eccaff7f80c76b59397a 100644
(file)
--- a/
webcit/webserver.c
+++ b/
webcit/webserver.c
@@
-109,9
+109,9
@@
int main(int argc, char **argv)
/* Parse command line */
#ifdef HAVE_OPENSSL
/* Parse command line */
#ifdef HAVE_OPENSSL
- while ((a = getopt(argc, argv, "u:h:i:p:t:T:B:x:dD:G:cfsS:Z")) != EOF)
+ while ((a = getopt(argc, argv, "u:h:i:p:t:T:B:x:
g:
dD:G:cfsS:Z")) != EOF)
#else
#else
- while ((a = getopt(argc, argv, "u:h:i:p:t:T:B:x:dD:G:cfZ")) != EOF)
+ while ((a = getopt(argc, argv, "u:h:i:p:t:T:B:x:
g:
dD:G:cfZ")) != EOF)
#endif
switch (a) {
case 'u':
#endif
switch (a) {
case 'u':
@@
-136,6
+136,9
@@
int main(int argc, char **argv)
pidfile = strdup(optarg);
running_as_daemon = 1;
break;
pidfile = strdup(optarg);
running_as_daemon = 1;
break;
+ case 'g':
+ default_landing_page = strdup(optarg);
+ break;
case 'B': /* Basesize */
basesize = atoi(optarg);
if (basesize > 2)
case 'B': /* Basesize */
basesize = atoi(optarg);
if (basesize > 2)