Commit ·
d201beb
1
Parent(s): 4d1de3b
update
Browse files
ndcc/server/plugins/rateLimit.js
CHANGED
|
@@ -34,7 +34,7 @@ exports.plugin = {
|
|
| 34 |
});
|
| 35 |
|
| 36 |
await server.register({
|
| 37 |
-
plugin:
|
| 38 |
options: {
|
| 39 |
enabled:true,
|
| 40 |
pathLimit:false, //每个周期在给定路径上可以发出的请求总数
|
|
|
|
| 34 |
});
|
| 35 |
|
| 36 |
await server.register({
|
| 37 |
+
plugin:require('hapi-rate-limit'),
|
| 38 |
options: {
|
| 39 |
enabled:true,
|
| 40 |
pathLimit:false, //每个周期在给定路径上可以发出的请求总数
|