diff --git a/app/models/ip_history.rb b/app/models/ip_history.rb index a249e69..09bf0e2 100644 --- a/app/models/ip_history.rb +++ b/app/models/ip_history.rb @@ -8,7 +8,8 @@ class IpHistory < ActiveRecord::Base def generate_infos begin - http_url = "http://sideplace.com:8080/json/#{self.remote_ip}" + http_url = "http://sideplace.com:9090/json/#{self.remote_ip}" + http_url = "https://freegeoip.lwan.ws/json/#{self.remote_ip}" puts "on tente #{http_url}" http = Curl::Easy.http_get(http_url) #http = Curl.get("https://freegeoip.lwan.ws/json/#{self.remote_ip}")