main #22

Merged
ccyj merged 68 commits from sangge/tpre-python:main into main 2023-10-26 14:45:47 +08:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 1fcdf20afb - Show all commits

View File

@ -311,8 +311,8 @@ async def recieve_request(i_m: IP_Message):
def get_own_ip() -> str:
hostname = socket.gethostname()
ip = socket.gethostbyname(hostname)
ip = os.environ.get("HOST_IP", "IP not set")
return ip

View File

@ -108,4 +108,4 @@ async def send_user_des_message(source_ip: str, dest_ip: str, re_message): #
if __name__ == "__main__":
import uvicorn # pylint: disable=e0401
uvicorn.run("node:app", host="0.0.0.0", port=8001, reload=True)
uvicorn.run("node:app", host="0.0.0.0", port=8001, reload=False)