retreive real client IP
This commit is contained in:
parent
b77934e346
commit
7d399e63dc
@ -42,7 +42,7 @@ def upload_dump():
|
||||
clean_deptname = re.sub(r"[^A-Za-z-]", "", request.form["dept_name"])
|
||||
the_file = request.files["file"]
|
||||
filename = the_file.filename
|
||||
data = the_file.file.read()
|
||||
data = the_file.read()
|
||||
|
||||
try:
|
||||
remote_host = socket.gethostbyaddr(remote_addr)[0]
|
||||
|
Loading…
Reference in New Issue
Block a user