diff options
| author | Tyler Murphy <tylermurphy534@gmail.com> | 2023-01-23 23:53:39 -0500 |
|---|---|---|
| committer | Tyler Murphy <tylermurphy534@gmail.com> | 2023-01-23 23:53:39 -0500 |
| commit | 1aecfe81bcbee65d3c4c72e12aa14b561b7e32fa (patch) | |
| tree | 4b28189463486220b2c7652e440674b42eb5e7ce | |
| parent | variable name conflict (diff) | |
| download | xssbook-1aecfe81bcbee65d3c4c72e12aa14b561b7e32fa.tar.gz xssbook-1aecfe81bcbee65d3c4c72e12aa14b561b7e32fa.tar.bz2 xssbook-1aecfe81bcbee65d3c4c72e12aa14b561b7e32fa.zip | |
re add console limiting
| -rw-r--r-- | src/console.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/console.js b/src/console.js index 7da50c8..4bee9de 100644 --- a/src/console.js +++ b/src/console.js @@ -123,6 +123,10 @@ const parse = (req) => { const render = () => { + if (requests.length > 200) { + requests.splice(0, 100) + } + const html = ` <!DOCTYPE html> <html lang="en"> |