summaryrefslogtreecommitdiff
path: root/webserver.js
diff options
context:
space:
mode:
Diffstat (limited to 'webserver.js')
-rwxr-xr-xwebserver.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webserver.js b/webserver.js
index c59cd9f..ab524ca 100755
--- a/webserver.js
+++ b/webserver.js
@@ -102,7 +102,7 @@ function requestFile(req,res,listdirs,path,origpath){
return f!==null;
});
res.send(
- String(fs.readFileSync(cmn.rootdir+"/web_files/dirlisting.html"))
+ String(fs.readFileSync(cmn.serverdir+"/dirlisting.html"))
.replace("<!--DIRDIR-->",path)
.replace("[/*LISTINGLISTING*/]",JSON.stringify(items))
);