Merge pull request #482 from bcambl/fix_indent

Fix indentation from commit 2525be90
This commit is contained in:
Dmitry Vasilets
2015-10-10 09:43:00 +02:00

View File

@@ -40,14 +40,14 @@ module VagrantPlugins
# @param [Machine] machine
# @return [String]
def read_host_ip(ip)
UDPSocket.open do |s|
if(ip.kind_of?(Array))
s.connect(ip.last, 1)
else
s.connect(ip, 1)
UDPSocket.open do |s|
if(ip.kind_of?(Array))
s.connect(ip.last, 1)
else
s.connect(ip, 1)
end
s.addr.last
end
s.addr.last
end
end
# Returns the IP address of the guest
#