Skip to content
Snippets Groups Projects
Commit c8670665 authored by Alex Reisner's avatar Alex Reisner
Browse files

Properly check for loopback IP address.

parent 2724715e
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ module Geocoder::Lookup
def results(query)
# don't look up a loopback address, just return the stored result
return [reserved_result] if loopback_address?(query)
return [reserved_result] if query.loopback_ip_address?
begin
doc = fetch_data(query)
if doc && doc.size == 10
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment