Let sky_server follow links outside of the current directory

This commit is contained in:
Adam Barth
2015-07-23 00:13:51 -07:00
parent 470186cea5
commit 0365fefaca

View File

@@ -24,6 +24,8 @@ main(List<String> argv) async {
}
VirtualDirectory currentDirectory = new VirtualDirectory('.')
..followLinks = true
..jailRoot = false
..allowDirectoryListing = true;
HttpServer server;
@@ -43,6 +45,4 @@ main(List<String> argv) async {
server
..autoCompress = true
..listen(currentDirectory.serveRequest);
print('Sky server running on port $port');
}