addrinfo.ipv4? => true or false
Instance Public methods
returns true if addrinfo is IPv4 address. returns false otherwise.
Addrinfo.tcp("127.0.0.1", 80).ipv4? #=> true Addrinfo.tcp("::1", 80).ipv4? #=> false Addrinfo.unix("/tmp/sock").ipv4? #=> false
Please login to continue.