Sha256: cd05774dc58f54c87ef0dc04eddcff8b942c678088171d02b096f45a6a22f993
Contents?: true
Size: 195 Bytes
Versions: 8
Compression:
Stored size: 195 Bytes
Contents
def unused_port s = TCPServer.open(0) port = s.addr[1] s.close port end def ipv6_enabled? require 'socket' begin TCPServer.open("::1", 0) true rescue false end end
Version data entries
8 entries across 8 versions & 1 rubygems