Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
b8dc5795
Commit
b8dc5795
authored
Dec 12, 2016
by
Philip ABBET
Browse files
Fix the previous commit for OSX
parent
6d7769d4
Pipeline
#5782
failed with stage
in 18 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/core/dock.py
View file @
b8dc5795
...
...
@@ -109,7 +109,7 @@ class Host(object):
def
ip
(
self
):
'''The IP address of the docker host'''
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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment