diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-31 11:09:06 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-31 11:09:06 -0300 |
commit | b34aa7437e55577953a50b6a0e65debcb930f253 (patch) | |
tree | 11db0c47a2f6772644bf133ed7155746a197293e /server.py | |
parent | c67dcb3dbaf3efb888d25e6c17f4d62b9ccedc12 (diff) | |
download | server-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-x | server.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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: |