This commit is contained in:
Amazed 2019-02-12 14:57:55 +01:00
parent 25d3aa7a73
commit c5c615e778

View File

@ -4,7 +4,7 @@ import datetime
import time
import traceback
SERVERS = [{"ip": "163.158.182.243", "port": 19711, "last":datetime.datetime.now()}, {"ip": "206.55.174.10", "port": 19711, "last": datetime.datetime.now()}]
SERVERS = [{"ip": "163.158.182.243", "port": 19711, "last":datetime.datetime.now()}, {"ip": "73.181.147.35", "port": 19711, "last": datetime.datetime.now()}]
def main():
listen_ip = "0.0.0.0"
@ -42,8 +42,6 @@ def queryloop(querysock):
b += SERVERS[i]["ip"].encode("ascii")
b += b'\xac'
b += str(SERVERS[i]["port"]).encode("ascii")
if not i == len(SERVERS) - 1:
b += b'\xac'
b += b'\x00'
print("Sending back", b)
clientsocket.send(b)