Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ftpd.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ function fixPath(fs, path) {
}

// host should be an IP address, and sandbox a path without trailing slash for now
function createServer(host, sandbox) {
function createServer(host, sandbox, virtualFS) {
if(virtualFS){
fs = virtualFS;
}
// make sure host is an IP address, otherwise DATA connections will likely break
var server = net.createServer();
server.baseSandbox = sandbox; // path which we're starting relative to
Expand Down