suite
This commit is contained in:
parent
a578db5c5d
commit
bd9fcf270b
@ -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}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user