Skip to content

Commit

Permalink
Fix docker_adrs for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Feb 14, 2019
1 parent 0724c73 commit b738a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-run
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def main():
return None

for x in netifaces.interfaces():
if get_connection_name_from_guid(x) == 'Ethernet':
if get_connection_name_from_guid(x).find('Ethernet') == 0:
docker_adrs = netifaces.ifaddresses(x)[2][0]['addr']
break
elif 'docker0' in netifaces.interfaces():
Expand Down

0 comments on commit b738a29

Please sign in to comment.