From 2ebdfc842519ff7e7ec2b3c281ed94b4d90cd78a Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 7 May 2019 12:59:36 -0700 Subject: [PATCH] A better login cooldown. --- server/src/websocket/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/websocket/server.rs b/server/src/websocket/server.rs index cd931e1fa..abdf9ea9b 100644 --- a/server/src/websocket/server.rs +++ b/server/src/websocket/server.rs @@ -20,8 +20,8 @@ use api::site::*; const RATE_LIMIT_MESSAGES: i32 = 30; const RATE_LIMIT_PER_SECOND: i32 = 60; -const RATE_LIMIT_REGISTER_MESSAGES: i32 = 1; -const RATE_LIMIT_REGISTER_PER_SECOND: i32 = 60; +const RATE_LIMIT_REGISTER_MESSAGES: i32 = 3; +const RATE_LIMIT_REGISTER_PER_SECOND: i32 = 60*3; /// Chat server sends this messages to session