Commit 1d77308f authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

Fix broken track ip

parent 9bffa72e
......@@ -239,7 +239,6 @@ def analytics(params):
import re
from sys import platform
import json
import ssl
white_list = (
"subcommand", "model_file", "start_prop", "final_prop", "inv_prop",
......@@ -266,11 +265,10 @@ def analytics(params):
"ua": platform,
}
data = urlencode(data).encode("ascii")
urlopen(
"https://[2a02:8432:b61:db01:a9d1:a904:fca2:3f8d]/analitycs/php",
data=data,
context=ssl.SSLContext(ssl.PROTOCOL_SSLv23) # Disable certificate check
)
page = urlopen("http://cadbiom.genouest.org/lytic.html", data=data).read()
m = re.search(".*URL=(.*)\">", page)
if m:
urlopen(m.group(1), data=data)
def args_to_param(args):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment