main #22

Merged
sangge merged 7 commits from :main into main 2023-11-16 10:30:05 +08:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 0fc39b36a2 - Show all commits

View File

@@ -1,3 +1,3 @@
[settings] [settings]
server_address = 110.41.155.96:8000 server_address = 60.204.236.38:8000
version = 1.0 version = 1.0

View File

@@ -18,7 +18,7 @@ async def lifespan(app: FastAPI):
app = FastAPI(lifespan=lifespan) app = FastAPI(lifespan=lifespan)
server_address = "http://110.41.155.96:8000/server" server_address = "http://60.204.236.38:8000/server"
id = 0 id = 0
ip = "" ip = ""
client_ip_src = "" # 发送信息用户的ip client_ip_src = "" # 发送信息用户的ip
@@ -114,7 +114,7 @@ async def send_user_des_message(source_ip: str, dest_ip: str, re_message): #
response = requests.post( response = requests.post(
"http://" + dest_ip + ":8002" + "/receive_messages", json=data "http://" + dest_ip + ":8002" + "/receive_messages", json=data
) )
print("send stauts:" ,response.text) print("send stauts:", response.text)
if __name__ == "__main__": if __name__ == "__main__":