mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-07 08:22:05 +02:00
added unit to throttle
This commit is contained in:
@@ -201,7 +201,6 @@ impl ProxyUserCredentials {
|
||||
|
||||
pub async fn connection_permission(&self, app_state: &AppState) -> UserConnectionPermission {
|
||||
if app_state.config.user_access_control {
|
||||
|
||||
// we allow requests with max connection reached, but we should block streaming after grace period
|
||||
if let Some(&max_connections) = self.max_connections.as_ref() {
|
||||
if max_connections > 0 {
|
||||
|
||||
Reference in New Issue
Block a user