mirror of
https://github.com/barronwaffles/dwc_network_server_emulator.git
synced 2026-04-24 15:27:06 -05:00
Kick banned IP's from the server
This commit is contained in:
parent
8c4d53eae8
commit
d019e9b31f
|
|
@ -204,6 +204,11 @@ class PlayerSession(LineReceiver):
|
|||
|
||||
commands, self.remaining_message = \
|
||||
gs_query.parse_gamespy_message(data)
|
||||
|
||||
if self.db.is_banned({'ipaddr':self.address.host}):
|
||||
self.log(logging.DEBUG, "**** Banned user, closing network socket for %s..." % (self.address.host))
|
||||
self.transport.abortConnection()
|
||||
return
|
||||
|
||||
cmds = {
|
||||
"login": self.perform_login,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user