Browse Source

限制一分钟100次

locky 3 years ago
parent
commit
767cd492bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/ShadowController.py

+ 1 - 1
Controller/ShadowController.py

@@ -58,7 +58,7 @@ def generate_utk(request):
 
 
 # 设备影子更新
-@ratelimit(key='ip', rate='10/1m', block=True)
+@ratelimit(key='ip', rate='100/1m', block=True)
 def update_device_shadow(request):
     request.encoding = 'utf-8'
     if request.method == 'POST':