diff --git a/lib/ipinfo.rb b/lib/ipinfo.rb index 59a8fb0..2d46b1f 100644 --- a/lib/ipinfo.rb +++ b/lib/ipinfo.rb @@ -119,6 +119,7 @@ def prepare_http_client(httpc = nil) def request_details(ip_address = nil, host_type) if isBogon(ip_address) + details = {} details[:ip] = ip_address details[:bogon] = true details[:ip_address] = IPAddr.new(ip_address)