You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,13 @@ app.post('/auth',
138
138
139
139
Changelog
140
140
---------
141
+
### v0.4.0
142
+
* NEW: `attachResetToRequest` parameter that lets you prevent the request object being decorated
143
+
* NEW: `failCallback` can be overriden by `getMiddleware`
144
+
* NEW: `proxyDepth` option on `ExpressBrute` that specifies how many levels of the `X-Forwarded-For` header to trust (inspired by [express-bouncer](https://github.com/dkrutsko/express-bouncer/)).
145
+
* NEW: `getIPFromRequest` method that essentially allows `reset` to used in a similar ways as in v0.2.2. This also respects the new `proxyDepth` setting.
146
+
* CHANGED: `getMiddleware` now takes an options object instead of the key directly.
147
+
141
148
### v0.3.0
142
149
* NEW: Support for using custom keys to group requests further (e.g. grouping login requests by username)
143
150
* NEW: Support for middleware from multiple instances of `ExpressBrute` on the same route.
0 commit comments