IP is kinda tricky and a wrong implementation is a huge security risk
This commit is contained in:
parent
6dc2d43222
commit
ba87db30b0
1 changed files with 1 additions and 4 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue