Skip to content
Snippets Groups Projects
Commit b8dc5795 authored by Philip ABBET's avatar Philip ABBET
Browse files

Fix the previous commit for OSX

parent 6d7769d4
No related branches found
No related tags found
1 merge request!13Merge docker-related changes
Pipeline #
...@@ -109,7 +109,7 @@ class Host(object): ...@@ -109,7 +109,7 @@ class Host(object):
def ip(self): def ip(self):
'''The IP address of the docker host''' '''The IP address of the docker host'''
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(('8.8.8.8', 0)) # connecting to a UDP address doesn't send packets s.connect(('8.8.8.8', 1)) # connecting to a UDP address doesn't send packets
return s.getsockname()[0] return s.getsockname()[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment