new: trying toget proxy field from /capture

pull/223/head
felalex 2021-06-22 18:39:14 +02:00
parent 046dc4d1d1
commit a04d224c79
1 changed files with 3 additions and 0 deletions

View File

@ -757,6 +757,9 @@ def capture_web():
if request.form.get('referer'):
capture_query['referer'] = request.form['referer']
if request.form.get('proxy'):
capture_query['proxy'] = request.form['proxy']
perma_uuid = lookyloo.enqueue_capture(capture_query, source='web', user=user, authenticated=flask_login.current_user.is_authenticated)
time.sleep(30)
return redirect(url_for('tree', tree_uuid=perma_uuid))