FranzKafkaYu / x-ui

Lightweight Xray panel with multi-protocol and multi-user on the same port,supports English language and Telegram bot. Easy to use and easy to manage.
GNU General Public License v3.0
7.79k stars 1.54k forks source link

Feature request: add IP address to log if user failed to login. #492

Open Padandish opened 1 year ago

Padandish commented 1 year ago

Hi dear, I check x-ui log. when user failed to login: Sep 02 23:34:15 xxxxxxx.xxx x-ui[8934]: 2023/09/02 23:34:15 INFO - wrong username or password: "root" "demo"

if you added ip to this log, user can use fail2ban to protect bruteforce attack. and log can change in custom path such as /var/log/x-ui.log will be great.

Thanks