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
README: update with extra disclaimer
[raindrops.git]
/
test
/
ipv6_enabled.rb
blob
84ed9c183aac145620918eb9ecba684bb12b65c4
1
# frozen_string_literal: false
2
def ipv6_enabled?
3
tmp = TCPServer.new(ENV["TEST_HOST6"] || '::1', 0)
4
tmp.close
5
true
6
rescue => e
7
warn "skipping IPv6 tests, host does not seem to be IPv6 enabled:"
8
warn " #{e.class}: #{e}"
9
false
10
end