lib/geocoder/lookups/freegeoip.rb in geocoder-1.4.3 vs lib/geocoder/lookups/freegeoip.rb in geocoder-1.4.4

- old
+ new

@@ -7,10 +7,15 @@ def name "FreeGeoIP" end def supported_protocols - [:http] + if configuration[:host] + [:http, :https] + else + # use https for default host + [:https] + end end def query_url(query) "#{protocol}://#{host}/json/#{query.sanitized_text}" end