repo.or.cz
/
raindrops.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
linux_inet_diag: clarify *fprintf usage without GVL
[raindrops.git]
/
test
/
ipv6_enabled.rb
blob
f02b48ff014975bc4603b0038cab795d11fa338f
1
def ipv6_enabled?
2
tmp = TCPServer.new(ENV["TEST_HOST6"] || '::1', 0)
3
tmp.close
4
true
5
rescue => e
6
warn "skipping IPv6 tests, host does not seem to be IPv6 enabled:"
7
warn " #{e.class}: #{e}"
8
false
9
end