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']
|
||||
log = content['log']
|
||||
score = int(content['score'])
|
||||
ip = flask.request.remote_addr
|
||||
|
||||
if ip == '':
|
||||
ip = '0.0.0.0'
|
||||
ip = "0.0.0.0"
|
||||
|
||||
# Extra validators
|
||||
if score <= 0:
|
||||
|
|
Loading…
Reference in a new issue