1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-03-23 11:04:49 +00:00

Make VNC listen by default only on 127.0.0.1 and add a checkbox on vncsettings to listen on 0.0.0.0

This commit is contained in:
Valentin Samir 2016-05-04 14:03:16 +02:00
parent 2c4a6e16eb
commit fd2dc1296f
4 changed files with 51 additions and 2 deletions

View file

@ -573,6 +573,25 @@
</div>
</div>
</form>
<p>{% trans "To change VNC listen status, shutdown the instance." %}</p>
<form class="form-horizontal" method="post" role="form">{% csrf_token %}
<div class="form-group">
<div class="col-sm-offset-2 col-sm-6">
<div class="checkbox">
<label>
<input type="checkbox" name="listen_locally" value="true" id="console_listen_locally" {% if console_listen_locally %}checked="checked"{% endif %}>{% trans "Listen only locally (127.0.0.1)" %}
</label>
</div>
</div>
<div class="col-sm-3">
{% ifequal status 5 %}
<button type="submit" class="btn btn-success" name="set_console_listen_addr">{% trans "Set" %}</button>
{% else %}
<button class="btn btn-success disabled" name="set_console_listen_addr">{% trans "Set" %}</button>
{% endifequal %}
</div>
</div>
</form>
<p>{% trans "To create console password, shutdown the instance." %}</p>
<form class="form-horizontal" method="post" role="form">{% csrf_token %}
<div class="form-group">