diff options
-rw-r--r-- | param.ccl | 5 | ||||
-rw-r--r-- | src/Startup.c | 6 |
2 files changed, 9 insertions, 2 deletions
@@ -26,4 +26,7 @@ INT timeout_useconds "Polling timeout micro-seconds" BOOLEAN standalone "Should the server poll continuously in startup" { } "no" -
\ No newline at end of file + +BOOLEAN provide_pages "Should the server provide any pages ?" +{ +} "yes" diff --git a/src/Startup.c b/src/Startup.c index 495de8b..0fbe6ff 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -40,7 +40,11 @@ int HTTP_Startup(void) { DECLARE_CCTK_PARAMETERS - HTTP_RegisterPages(); + /* Does the server provide any pages by default ? */ + if(provide_pages) + { + HTTP_RegisterPages(); + } HTTP_SetupServer(port, queue_length); |