tqhoa commited on
Commit
fc00c09
·
verified ·
1 Parent(s): 22cb1c7

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -1
main.py CHANGED
@@ -32,8 +32,10 @@ def root(
32
 
33
  @app.get("/user-info")
34
  async def get_user_info() -> Dict[str, str]:
 
 
35
  return {
36
- "IP Address": socket.gethostname()
37
  }
38
 
39
  def push_noti_tele(message):
 
32
 
33
  @app.get("/user-info")
34
  async def get_user_info() -> Dict[str, str]:
35
+ hostname = socket.gethostname()
36
+ ip_address = socket.gethostbyname(hostname)
37
  return {
38
+ "IP Address": ip_address
39
  }
40
 
41
  def push_noti_tele(message):