Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2022-01-02 | Implement a short-lived packet cache when client request is the same as ↵ | Jesusaves | 1 | -1/+26 | |
previous. This allows the client to re-send packets safely in case of network issues, without the server duplicating the action. Note that server-initiated requests are never cached. ...Which are only AP or Broadcast, so makes no difference, I guess. | |||||
2021-08-21 | Set a default syslog priority for failures (INFO -> NOTICE) | Jesusaves | 1 | -1/+2 | |
2021-08-18 | Sanitize packet (so it can send numbers) and send special code for outdated ↵v2.1.8.18 | Jesusaves | 1 | -1/+1 | |
clients | |||||
2021-08-16 | Add command `list` (aka. `all`) which lists everyone connected. | Jesusaves | 1 | -0/+4 | |
Also lists their tokens and IPs so the other commands (ban, ddos, etc.) can be used | |||||
2021-08-16 | Fix the `debug` command from server console | Jesusaves | 1 | -2/+4 | |
2021-08-04 | Add another verbosity level, otherwise debug.txt will be a monster | Jesusaves | 1 | -8/+11 | |
2020-12-31 | In case of a successful DDoS, prevent wasting resources evaluating blacklist | Jesusaves | 1 | -9/+9 | |
and other stuff as the server is full. This is done this way, not to save the game server from the DDoS, but to save the remainder of the VM. | |||||
2020-12-31 | Fail silently if when closing a socket the client is not in the list. | Jesusaves | 1 | -1/+8 | |
(Usually, connection dropped before registration) | |||||
2020-12-31 | Fix typos and a bug of a swapped max and min function | Jesusaves | 1 | -2/+2 | |
2020-12-31 | Add support for custom battle backgrounds. | Jesusaves | 1 | -0/+1 | |
Fix typos and minor bugs. | |||||
2020-12-31 | Registration failure now only gives 2 lame points. | Jesusaves | 1 | -2/+1 | |
This means each connection can attempt up to three registrations. Raise to 3 in case of attack :p | |||||
2020-12-31 | Relicense the game to GPLv3. | Jesusaves | 1 | -0/+17 | |
utils.py can still be used under the LGPL. The LGPL license present in git history is no longer valid, but already issued copies still are. Needless to say, there are no "already issued copies"... | |||||
2020-12-27 | Add command to kick users (no ban) | Jesusaves | 1 | -4/+6 | |
2020-12-27 | Manually casting ban or kline will now disconnect sessions as well | Jesusaves | 1 | -0/+16 | |
2020-12-27 | Disclose about automatic bans, and make score rule read from consts.py | Jesusaves | 1 | -1/+0 | |
Move the TODO about dropping already established connections from server.py to security.py | |||||
2020-12-27 | Update instructions, attempt to generate a Z-Line file at make time. | Jesusaves | 1 | -2/+3 | |
2020-12-23 | Update README with the command list, add aliases, add unban, and cleanup. | Jesusaves | 1 | -2/+11 | |
2020-12-23 | Explain in README the difference between K-Line and the other lines. | Jesusaves | 1 | -1/+1 | |
TL;DR The G and Z lines were meant to be auto-deployed, while K line is local. | |||||
2020-12-23 | Add a command to perma-ban (or block) an IP. | Jesusaves | 1 | -2/+7 | |
2020-12-23 | Update notes | Jesusaves | 1 | -2/+1 | |
2020-12-23 | Add status commands so you can see how many connections are open | Jesusaves | 1 | -0/+2 | |
2020-12-23 | Commands to DC or DC-and-Ban all unauthed clients. | Jesusaves | 1 | -1/+19 | |
These may be used in DDoS scenarios. | |||||
2020-12-21 | Allow arbitrary command execution as well. | Jesusaves | 1 | -1/+7 | |
Please do not abuse this. | |||||
2020-12-21 | Fix the bug on duplicate login detection | Jesusaves | 1 | -2/+0 | |
2020-12-21 | Abrupt loss of connection will now save the player data and destroy the old ↵ | Jesusaves | 1 | -2/+7 | |
token. Or at least, it will try to. | |||||
2020-12-21 | Allow high and totally unsafe wizardry if debug mode is ON. | Jesusaves | 1 | -1/+10 | |
Allow debug mode to be toggled on and off on server console. | |||||
2020-12-21 | Anti-dupe is not working... | Jesusaves | 1 | -0/+1 | |
2020-12-21 | Improve token logic internally. | Jesusaves | 1 | -0/+1 | |
Hopefully this will detect when same userid is logged in twice and dc the older login. May suffer of race condition. | |||||
2020-12-21 | Make clients a global array | Jesusaves | 1 | -2/+1 | |
2020-12-19 | Add token field to connection. Send connection to protocol parser. | Jesusaves | 1 | -3/+4 | |
Add new constants for the results (non-boolean) so later™ score can be smart. | |||||
2020-12-19 | Send max_exp to clients so they can render the exp bar without needing to ↵ | Jesusaves | 1 | -0/+1 | |
download the whole experience table. | |||||
2020-12-18 | Make experience table to rank up steeper. | Jesusaves | 1 | -1/+6 | |
We really should read a table instead of using a formula... | |||||
2020-12-18 | Limit maximum clients connected at once to 2500. | Jesusaves | 1 | -3/+9 | |
In theory, it could handle 10k or so, but ML has total priority. So even if this interfers with Mana Spheres operation, it is preferable. | |||||
2020-12-18 | Try to improve how script looks for linting | Jesusaves | 1 | -2/+2 | |
2020-12-18 | Registrations should be working again. | Jesusaves | 1 | -1/+1 | |
Bump client version so it is now authorized! \o/ | |||||
2020-12-18 | Allow empty commands, and start printing tracebacks if something goes wrong | Jesusaves | 1 | -12/+20 | |
2020-12-18 | Shutting down the server normally now notifies all clients about shutdown | Jesusaves | 1 | -2/+4 | |
2020-12-17 | Fix a few typos, try to cleanup | Jesusaves | 1 | -3/+6 | |
2020-12-17 | Add formating rules for SERVNOTICE | Jesusaves | 1 | -1/+1 | |
2020-12-17 | Add a rudimentary command parser for server. | Jesusaves | 1 | -2/+13 | |
Right now, it can safely exit the program (w/o ctrl+c), broadcast to all clients, and ban an IP. | |||||
2020-12-17 | New function: security.score() | Jesusaves | 1 | -0/+5 | |
Whenever a bad packet is received or something, it adds a "score" to the conn. If it exceeds a certain threshold (5 for unauthed, 30 for authed users), the connection is killed and IP is blacklisted for BAN_TIME (default: 3 mins) | |||||
2020-12-17 | Move blacklist functions to security.py | Jesusaves | 1 | -41/+3 | |
2020-12-17 | Fix a few bugs and ignore the ban files. | Jesusaves | 1 | -6/+15 | |
2020-12-17 | Update README instructions, and fix the blacklist system to use dl_search | Jesusaves | 1 | -1/+1 | |
instead. | |||||
2020-12-17 | Add support for three blacklist files | Jesusaves | 1 | -4/+37 | |
But technicially, Z-Line and G-Line should be processed before | |||||
2020-12-16 | Initial protocol processing system | Jesusaves | 1 | -9/+21 | |
2020-12-16 | Import the good ol' SQL module. | Jesusaves | 1 | -0/+7 | |
2020-12-16 | Add utils for improved logging. | Jesusaves | 1 | -11/+16 | |
Add the placeholder JSONs from earlier. | |||||
2020-12-15 | Allow server to be run with SSL encryptation | Jesusaves | 1 | -4/+8 | |
It is a hurdle in both Google Play Console as in Python-For-Android | |||||
2020-12-15 | Messages should always be a reply, never a global notice | Jesusaves | 1 | -5/+1 | |