Log in

View Full Version : IP-based Exemptions.


Kingly_Krab
08-27-2016, 06:00 PM
IP-based exemptions have been in the spotlight on numerous servers where boxing is capped. I have taken the liberty of adding an optional rule_value to the source code to allow you to make IP-specific exemptions for accounts.

What this means is, IP X can only have 3 accounts, but being IP Y has 2 people playing, they can have 6.

The IP exemptions are rather simplistic and only require a few things:


World:EnableIPExemptions must be true.
An entry must be made in ip_exemptions with the IP and exemption amount for the IP.

Note: If there is not an entry for the IP in the table it will default to World:MaxClientsPerIP


There isn't really much more to explain; however, if you have any questions or concerns, feel free to ask.

DanCanDo
08-27-2016, 08:31 PM
I like this, but I "assume" that this will be used more for a disciplinary option for server ops.
"Been a bad boy ? Ok, you can only log on one toon for a month" (chuckle)

Kingly_Krab
08-27-2016, 09:36 PM
It's more of an ability to dynamically influence the number of accounts an IP can log in. Exemptions for multiple people on a singular IP is the main use.

Drajor
08-27-2016, 09:37 PM
No, servers are frequently designed to have caps. Some servers have donation requirements per box etc. Nice work KK

Kingly_Krab
08-27-2016, 09:40 PM
No, servers are frequently designed to have caps. Some servers have donation requirements per box etc. Nice work KK
Thank you, I appreciate it. Had I known how simple this was to do, I would have done it long ago.