Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix local_addr
  • Loading branch information
RyanGibb committed Oct 10, 2021
1 parent ddc60dd commit 43eba66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/link.py
Expand Up @@ -172,7 +172,7 @@ def startup():

global local_addr
# from https://stackoverflow.com/questions/24196932/how-can-i-get-the-ip-address-from-nic-in-python
local_addr = os.popen("ip addr show %s" % mcast_interface).read().split("inet6 ")[1].split("/")[0]
local_addr = os.popen("ip addr show %s" % mcast_interface).read().split("inet6 ")[-1].split("/")[0]

global log_file
log_file = util.get_log_file("link")
Expand Down

0 comments on commit 43eba66

Please sign in to comment.