Browse Source

cleanup

main
Michael Pilosov 2 years ago
parent
commit
523a426972
  1. 12
      example_block/eden-server/announce.py

12
example_block/eden-server/announce.py

@ -20,15 +20,11 @@ def get_ip_address():
sio = socketio.AsyncClient()
async def _announce_server(**kwargs):
HOST_SERVER_IP = "0.0.0.0"
HOST_SERVER_PORT = 4999
SERVER_NAME = "server_1"
SERVER_PORT = 8000
SERVER_NAME = kwargs.get("name", SERVER_NAME)
SERVER_NAME = kwargs.get("name", "server_1")
SERVER_IP = kwargs.get("ip", get_ip_address())
SERVER_PORT = kwargs.get("port", SERVER_PORT)
HOST_SERVER_IP = kwargs.get("host_ip", HOST_SERVER_IP)
HOST_SERVER_PORT = kwargs.get("host_port", HOST_SERVER_PORT)
SERVER_PORT = kwargs.get("port", 8000)
HOST_SERVER_IP = kwargs.get("host_ip", "0.0.0.0")
HOST_SERVER_PORT = kwargs.get("host_port", 5000)
@sio.event
async def connect():

Loading…
Cancel
Save