Skip to content

Commit

Permalink
autoconnect and reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTheGeek committed Jan 26, 2024
1 parent 529f980 commit 3f124f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ def vm_url_id(uuid):
vm = VM.query.filter_by(id=uuid, users_id=current_user.id).first()
if vm:
token = vm.vncurl
return jsonify({"url": "https://vnc.insa-cvl.com/?path="+token}), 200
return jsonify({"url": "https://vnc.insa-cvl.com/?path="+token+"&autoconnect=true&reconnect=true"}), 200
else:
return jsonify({'message': 'VM not found'}), 404

Expand All @@ -604,7 +604,7 @@ def vm_url_template(template_id):
vm = VM.query.filter_by(template_id=template_id, users_id=current_user.id).first()
if vm:
token = vm.vncurl
return jsonify({"url": "https://vnc.insa-cvl.com/?path="+token}), 200
return jsonify({"url": "https://vnc.insa-cvl.com/?path="+token+"&autoconnect=true&reconnect=true"}), 200
else:
return jsonify({'message': 'Template not found'}), 404

Expand Down

0 comments on commit 3f124f9

Please sign in to comment.