Skip to content

Commit

Permalink
bin/bweb: jail by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Dec 16, 2023
1 parent 0a6c29c commit 0d9e24c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/bweb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const HELP = `
-k, --key <file> set key file
-c, --cert <file> set cert file
-a, --auth <user:pass> set basic auth
-j, --jail jail server
-u, --unjail unjail server
`;

/*
Expand Down Expand Up @@ -99,7 +99,7 @@ function parseArgs() {
__proto__: null,
prefix: resolve('.'),
useIndex: true,
jail: false
jail: true
}
};

Expand Down Expand Up @@ -203,9 +203,9 @@ function parseArgs() {
break;
}

case '-j':
case '--jail': {
options.file.jail = true;
case '-u':
case '--unjail': {
options.file.jail = false;
break;
}

Expand Down

0 comments on commit 0d9e24c

Please sign in to comment.