This commit is contained in:
Nicolas Bally 2018-08-13 00:42:05 +02:00
parent a578db5c5d
commit bd9fcf270b

View File

@ -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}")