raindrops.git  about / heads / tags
real-time stats for preforking Rack servers
blob c4c97094277f6cd2ef834c9cbae0f2a3fec0aa0b 211 bytes (raw)
$ git show v0.20.0:test/ipv6_enabled.rb	# shows this blob on the CLI

1
2
3
4
5
6
7
8
9
 
def ipv6_enabled?
  tmp = TCPServer.new(ENV["TEST_HOST6"] || '::1', 0)
  tmp.close
  true
rescue => e
  warn "skipping IPv6 tests, host does not seem to be IPv6 enabled:"
  warn "  #{e.class}: #{e}"
  false
end

git clone https://yhbt.net/raindrops.git