Sha256: 12501de58bad8be14411ae0ef15c1127f3c572773c1babf1e3886b90db765644

Contents?: true

Size: 211 Bytes

Versions: 5

Compression:

Stored size: 211 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
raindrops-maintained-0.21.0 test/ipv6_enabled.rb
raindrops-0.20.1 test/ipv6_enabled.rb
raindrops-0.20.0 test/ipv6_enabled.rb
raindrops-0.19.2 test/ipv6_enabled.rb
raindrops-0.19.1 test/ipv6_enabled.rb