Fix placeholder server IP handling

This commit is contained in:
Janis
2023-11-24 23:19:36 +01:00
parent 62ede11ba9
commit 9f6a2acc94
2 changed files with 5 additions and 2 deletions

View File

@@ -68,6 +68,9 @@ class RequestHandler(threading.Thread):
print('Container is starting. Using starting placeholder IP')
ip = os.environ.get('PLACEHOLDER_SERVER_STARTING_IP')
if not ip:
print('No placeholder server IP found')
return
server_socket.connect(
(ip, 25565))
server_socket.sendall(request)