Commit 0365fefa authored by Adam Barth's avatar Adam Barth

Let sky_server follow links outside of the current directory

parent 470186ce
...@@ -24,6 +24,8 @@ main(List<String> argv) async { ...@@ -24,6 +24,8 @@ main(List<String> argv) async {
} }
VirtualDirectory currentDirectory = new VirtualDirectory('.') VirtualDirectory currentDirectory = new VirtualDirectory('.')
..followLinks = true
..jailRoot = false
..allowDirectoryListing = true; ..allowDirectoryListing = true;
HttpServer server; HttpServer server;
...@@ -43,6 +45,4 @@ main(List<String> argv) async { ...@@ -43,6 +45,4 @@ main(List<String> argv) async {
server server
..autoCompress = true ..autoCompress = true
..listen(currentDirectory.serveRequest); ..listen(currentDirectory.serveRequest);
print('Sky server running on port $port');
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment