New IP Limit Method

Co-Authored-By: brekotis <93345790+brekotis@users.noreply.github.com>
This commit is contained in:
Alexey
2026-03-05 02:28:19 +03:00
parent 8be1ddc0d8
commit 4ae4ca8ca8
7 changed files with 293 additions and 166 deletions

View File

@@ -438,6 +438,16 @@ fn log_changes(
new_hot.access.user_max_unique_ips.len()
);
}
if old_hot.access.user_max_unique_ips_mode != new_hot.access.user_max_unique_ips_mode
|| old_hot.access.user_max_unique_ips_window_secs
!= new_hot.access.user_max_unique_ips_window_secs
{
info!(
"config reload: user_max_unique_ips policy mode={:?} window={}s",
new_hot.access.user_max_unique_ips_mode,
new_hot.access.user_max_unique_ips_window_secs
);
}
}
/// Load config, validate, diff against current, and broadcast if changed.