mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
parent
83151d1e1a
commit
d742a6ac09
@ -95,7 +95,12 @@ module VXLAN
|
||||
|
||||
text.each_line do |line|
|
||||
m = line.match(/^\s*inet6? ([a-f:\d\.]+)/i)
|
||||
return m[1] if m
|
||||
if m
|
||||
next if m[1].start_with?('127.')
|
||||
next if m[1] == '::1'
|
||||
return m[1]
|
||||
end
|
||||
end
|
||||
return nil
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user