Skip to content

Commit

Permalink
Fix typo. See #10.
Browse files Browse the repository at this point in the history
  • Loading branch information
cvasseng committed Dec 16, 2016
1 parent efaeb63 commit 0df09c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ if (options.enableServer || (options.host && options.host.length)) {
maxWorkers: options.workers || 25
});

if (options.rateLimit) {
main.server.enableRatelimiting({
if (options.rateLimit === 1 || options.rateLimit === 'true') {
main.server.enableRateLimiting({
max: options.rateLimit
});
}
Expand Down

0 comments on commit 0df09c6

Please sign in to comment.