1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-22 07:10:09 +01:00

Futher fixes for auth_req comparisons

This commit is contained in:
theonlynexus 2022-07-22 00:35:18 +00:00
parent 659d43b9ed
commit ec3ed4322d
2 changed files with 4 additions and 5 deletions

View File

@ -211,7 +211,6 @@ def settings():
status = session["message_status"]
session.pop("message")
session.pop("message_status")
required_auth = config.get("Server", "auth_req")
return render_template(
"settings.html",
conf=util.get_conf_list(WG_CONF_PATH),
@ -219,7 +218,7 @@ def settings():
status=status,
app_ip=config.get("Server", "app_ip"),
app_port=config.get("Server", "app_port"),
required_auth=required_auth,
required_auth=config.get("Server", "auth_req"),
wg_conf_path=config.get("Server", "wg_conf_path"),
peer_global_DNS=config.get("Peers", "peer_global_DNS"),
peer_endpoint_allowed_ips=config.get("Peers", "peer_endpoint_allowed_ips"),

View File

@ -17,7 +17,7 @@
{% endif %}
<h1 class="">Settings</h1>
<hr>
{% if required_auth == "true" %}
{% if required_auth %}
<div class="card mb-3">
<h6 class="card-header">Peer Default Settings</h6>
<div class="card-body">
@ -30,9 +30,9 @@
name="peer_global_DNS" value="{{ peer_global_DNS }}" required>
</div>
<div class="col-sm-6">
<label for="peer_endpoint_allowed_ips">Peer Endpoint Allowed IPs</label>
<label for="peer_endpoint_allowed_ip">Peer Endpoint Allowed IPs</label>
<input type="text" class="form-control mb-4" id="peer_endpoint_allowed_ip"
name="peer_endpoint_allowed_ips" value="{{ peer_endpoint_allowed_ips }}"
name="peer_endpoint_allowed_ip" value="{{ peer_endpoint_allowed_ip }}"
required>
</div>
<div class="col-sm-6">