diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-18 14:25:53 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-18 14:25:53 -0300 |
commit | c8dda24a93664933d476aa4724a73cbfcf240db8 (patch) | |
tree | bdb89979d8e1399ca62d0f7b75eeb04517f5dc6d /server.py | |
parent | 1553cd2d76ee09e7efaa3fcda5af7f1b4288a2e9 (diff) | |
download | server-c8dda24a93664933d476aa4724a73cbfcf240db8.tar.gz server-c8dda24a93664933d476aa4724a73cbfcf240db8.tar.bz2 server-c8dda24a93664933d476aa4724a73cbfcf240db8.tar.xz server-c8dda24a93664933d476aa4724a73cbfcf240db8.zip |
Make experience table to rank up steeper.
We really should read a table instead of using a formula...
Diffstat (limited to 'server.py')
-rwxr-xr-x | server.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -72,7 +72,8 @@ class WebSocketConn(WebSocket): self.close(self, status=1000, reason="K-Lined") return - # TODO: Drop OLD connections when same ID tries to connect + # TODO: Drop OLD connections when same IP tries to connect + # TODO: Either auto-ban or limit to <= 3 connections from same IP at once # By last, keep a "sane" amount of clients connected # This program must not, under any circumstances, interfer @@ -161,6 +162,10 @@ try: stdout("Preparing to close server...") sendmsg("NOTICE:Server is going down for scheduled maintenance. Please close, wait five minutes, and then re-open the app.") break + # TODO: Disconnect a client, disconnect all unauthed client, + # disconnect & ban all unauthed clients - all these are measures + # to manually fight a DoS + # Also, "permaban" an IP - open("K-Line.txt", "a") else: stdout("ERROR: Unknown command.") except: |