summaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-18 14:25:53 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-18 14:25:53 -0300
commitc8dda24a93664933d476aa4724a73cbfcf240db8 (patch)
treebdb89979d8e1399ca62d0f7b75eeb04517f5dc6d /server.py
parent1553cd2d76ee09e7efaa3fcda5af7f1b4288a2e9 (diff)
downloadserver-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-xserver.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/server.py b/server.py
index 5fd8474..8cc0e13 100755
--- a/server.py
+++ b/server.py
@@ -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: