Skip to content

Commit

Permalink
Attempt to fix IP display.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorane7 committed Apr 25, 2024
1 parent b3bd043 commit adb456e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions taky/cot/mgmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ def status(self):
if client.user:
if isinstance(client, SocketClient):
cli_meta["ip"] = client.addr[0]
try:
cli_meta["ip"] = client.sock.getpeername()[0]
except:
pass
cli_meta["uid"] = client.user.uid
cli_meta["callsign"] = client.user.callsign
cli_meta["group"] = str(client.user.group)
Expand Down

0 comments on commit adb456e

Please sign in to comment.