test: update test
This commit is contained in:
parent
f55b581059
commit
1fcdf20afb
@ -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
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user