fix: [sync server] remove hardcoded host

This commit is contained in:
Terrtia 2021-11-30 16:36:00 +01:00
parent e4344898b4
commit 23ad74c591
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -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}')