Fix mistake in TCP packet

This commit is contained in:
oldnapalm
2020-05-14 14:49:58 -03:00
committed by GitHub
parent 915ab2fb28
commit b41431bcd9
+1 -1
View File
@@ -88,7 +88,7 @@ class TCPHandler(socketserver.BaseRequestHandler):
self.data = self.request.recv(1024)
# send packet containing UDP server (127.0.0.1)
# it contains player_id (1000) but apparently client doesn't bother, works for other profiles
self.request.sendall(bytearray.fromhex('007010e8071800c2012e0a12080110061a093132372e302e302e3120ce170a12080010001a093132372e302e302e3120ce17100a181e2003ca01370a18080110061a17080110061a093132372e302e302e3120ce170a18080010001a16080010001a093132372e302e302e3120ce1710ce17'))
self.request.sendall(bytearray.fromhex('007010e8071800c2012e0a12080110061a093132372e302e302e3120ce170a12080010001a093132372e302e302e3120ce17100a181e2003ca01370a18080110061a12080110061a093132372e302e302e3120ce170a18080010001a12080010001a093132372e302e302e3120ce1710ce17'))
while True:
tcpthreadevent.wait(timeout=25)
try: