summaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-31 11:09:06 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-31 11:09:06 -0300
commitb34aa7437e55577953a50b6a0e65debcb930f253 (patch)
tree11db0c47a2f6772644bf133ed7155746a197293e /server.py
parentc67dcb3dbaf3efb888d25e6c17f4d62b9ccedc12 (diff)
downloadserver-b34aa7437e55577953a50b6a0e65debcb930f253.tar.gz
server-b34aa7437e55577953a50b6a0e65debcb930f253.tar.bz2
server-b34aa7437e55577953a50b6a0e65debcb930f253.tar.xz
server-b34aa7437e55577953a50b6a0e65debcb930f253.zip
Registration failure now only gives 2 lame points.
This means each connection can attempt up to three registrations. Raise to 3 in case of attack :p
Diffstat (limited to 'server.py')
-rwxr-xr-xserver.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/server.py b/server.py
index 7f22789..011ab4a 100755
--- a/server.py
+++ b/server.py
@@ -60,8 +60,7 @@ class WebSocketConn(WebSocket):
stdout("%s - %s" % (self.address[0], r[1]))
syslog.syslog(LOG_AUTH, "%s - %s" % (self.address[0], r[1]))
self.send_message("NACK\n")
- # FIXME: Parse the packet error score
- security.score(self, 5)
+ security.score(self, security.get_score(r[0]))
else:
self.send_message(r[1])
except: