Last active
October 1, 2020 18:22
-
-
Save cmol/1edf6faa701af858f7f4dd3dd78450c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addr_info = Addrinfo.new(client) | |
puts "Client connected from #{addr_info.ip_address} using " + | |
"#{addr_info.ipv6_v4mapped? ? "IPv4" : "IPv6"}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment