mirror of https://github.com/Mai-with-u/MaiBot.git
重构反爬虫逻辑,使用 deque 存储请求时间戳,以提升性能和内存管理效率。新增通过 WEBUI_TRUSTED_PROXIES 和 WEBUI_TRUST_XFF 配置受信任代理的支持,从而实现对 X-Forwarded-For 请求头的选择性信任。将可疑请求头的检测限制在特定请求头范围内,减少误判。更新 template.env,新增与代理相关的环境变量。 |
||
|---|---|---|
| .. | ||
| bot_config_template.toml | ||
| model_config_template.toml | ||
| template.env | ||