Skip to content

Commit

Permalink
Revert "Hardcode domo mesh ip for demo purposes (#21)" (#22)
Browse files Browse the repository at this point in the history
This reverts commit 3dc7efc.

Co-authored-by: Otto Waltari <[email protected]>
  • Loading branch information
owaltari and Otto Waltari authored Sep 19, 2023
1 parent 3dc7efc commit f4e57b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aud_manager/packetreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ def get_local_ip_addr(self):
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# Might want to catch an exception in case connect and/or getsockname fails
s.connect(("8.8.8.8", 80))
#ipaddr = ipaddress.ip_address(s.getsockname()[0])
ipaddr = ipaddress.ip_address("192.168.20.1")
ipaddr = ipaddress.ip_address(s.getsockname()[0])
s.close()
logging.debug("local IP address = %s", str(ipaddr))
return ipaddr

0 comments on commit f4e57b4

Please sign in to comment.