WemXPro / tracker

This repository is made to track bugs and suggestions in WemX
8 stars 4 forks source link

Allow IP bans back #414

Closed joti-prime closed 6 months ago

joti-prime commented 6 months ago

Describe the issue

I can’t ban IP

Product Version

2.0.1

Pterodactyl Panel Version (if applicable)

No response

To Reproduce

No response

Expected Behaviour

No response

Screenshots

No response

Additional Information

No response

PadowYT2 commented 6 months ago

Not a bug, that's intentional

Mubeen142 commented 6 months ago

IP bans were disabled intentionally since most users were using the CloudFlare proxy.

The problem that arised was that when an admin banned a cloudflare public ip all other users with that same ip would be banned too.

To remove the restriction of ip banning, you can app/Http/Controllers/Admin/UsersController.php

and remove line 215 to 217

Mubeen142 commented 6 months ago

IP bans were re-enabled in the next update