Skip to content

Commit

Permalink
stream local address format
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Jun 22, 2024
1 parent 7705230 commit 99c3207
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions py/stabilizer/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ def get_local_ip(remote):
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
try:
sock.connect((remote, 1883))
address = sock.getsockname()[0]
return sock.getsockname()[0]
finally:
sock.close()
return list(map(int, address.split(".")))


class AdcDac:
Expand Down

0 comments on commit 99c3207

Please sign in to comment.