Update server.py
Some checks are pending
Check syntax / check (push) Waiting to run
Some checks are pending
Check syntax / check (push) Waiting to run
This commit is contained in:
parent
660b95e8de
commit
7ee1db64c7
1 changed files with 2 additions and 0 deletions
|
@ -153,6 +153,8 @@ def session(connection, client, ip, ssl=False):
|
||||||
except:
|
except:
|
||||||
hostname = client[0]
|
hostname = client[0]
|
||||||
connection.sendall(bytes(f":{server} NOTICE * :*** Oof! Can't find your hostname, using IP...\r\n","UTF-8"))
|
connection.sendall(bytes(f":{server} NOTICE * :*** Oof! Can't find your hostname, using IP...\r\n","UTF-8"))
|
||||||
|
updateklines()
|
||||||
|
global banlist
|
||||||
if ip in banlist:
|
if ip in banlist:
|
||||||
print("Specified IP is banned, killing now.")
|
print("Specified IP is banned, killing now.")
|
||||||
reason = banlist[ip]
|
reason = banlist[ip]
|
||||||
|
|
Loading…
Reference in a new issue