summaryrefslogtreecommitdiff
path: root/lib/ipaddr.rb
diff options
context:
space:
mode:
-rw-r--r--lib/ipaddr.rb6
1 files changed, 6 insertions, 0 deletions
@@ -227,6 +227,12 @@ class IPAddr
return str
end
# Returns a network byte ordered string form of the IP address.
def hton
case @family