IP is kinda tricky and a wrong implementation is a huge security risk

This commit is contained in:
Denis-Cosmin Nutiu 2017-08-24 19:00:30 +03:00
parent 6dc2d43222
commit ba87db30b0

View file

@ -52,10 +52,7 @@ def result_post():
cpu = content['cpu'] cpu = content['cpu']
log = content['log'] log = content['log']
score = int(content['score']) score = int(content['score'])
ip = flask.request.remote_addr ip = "0.0.0.0"
if ip == '':
ip = '0.0.0.0'
# Extra validators # Extra validators
if score <= 0: if score <= 0: