From 23ad74c591269b0247377a68d5d6dccd0d6bfe67 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Tue, 30 Nov 2021 16:36:00 +0100 Subject: [PATCH] fix: [sync server] remove hardcoded host --- bin/core/ail_2_ail_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/core/ail_2_ail_server.py b/bin/core/ail_2_ail_server.py index 3b4231f7..8a5bfd7a 100755 --- a/bin/core/ail_2_ail_server.py +++ b/bin/core/ail_2_ail_server.py @@ -315,7 +315,7 @@ if __name__ == '__main__': cert_dir = os.environ['AIL_FLASK'] ssl_context.load_cert_chain(certfile=os.path.join(cert_dir, 'server.crt'), keyfile=os.path.join(cert_dir, 'server.key')) - start_server = websockets.serve(ail_to_ail_serv, "localhost", 4443, ssl=ssl_context, create_protocol=AIL_2_AIL_Protocol) + start_server = websockets.serve(ail_to_ail_serv, host, port, ssl=ssl_context, create_protocol=AIL_2_AIL_Protocol) print(f'Server Launched: wss://{host}:{port}') redis_logger.info(f'Server Launched: wss://{host}:{port}')