RigsOfRods / ror-server

Dedicated server software for Rigs of Rods
https://docs.rigsofrods.org/gameplay/multiplayer-server-setup/
GNU General Public License v3.0
19 stars 26 forks source link

Persistent bans #93

Open CuriousMike56 opened 5 years ago

CuriousMike56 commented 5 years ago

Currently, server bans are cleared when the server restarts. It would be nice if they were stored in a file, by username & IP.

CuriousMike56 commented 5 years ago

To expand on this, there should also be banned vehicles and usernames. The server scripts can ban vehicles, but the server must be restarted for the changes to apply.

ohlidalp commented 5 years ago

Hi.

RoRserver has persistent state AUTH_BANNED(32) based on token in authfile - this is checked first when connecting.

There are also IP-bans which are created by "!ban " command and aren't persisted. Nickname is recorded but not checked: https://github.com/RigsOfRods/ror-server/blob/17cc7b5a6922f4c32dcb7ea0753cbacafed4c401/source/server/sequencer.cpp#L219-L225

Draft