diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-04 08:08:07 +0500 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-04 08:08:07 +0500 |
commit | 5bf6a0c6eff6d18a42d5ae1775f09d360f9f1fcf (patch) | |
tree | 80f5c3267ec1640f37c3b092e72bad4e7929a11b /index.html | |
parent | Makefile: add view (diff) | |
download | wireguard-config-5bf6a0c6eff6d18a42d5ae1775f09d360f9f1fcf.tar.gz wireguard-config-5bf6a0c6eff6d18a42d5ae1775f09d360f9f1fcf.zip |
implement PersistentKeepalive as a parameter
It's a unique parameter in many ways compared to the others. First, it's
optional, and has a default value. Second, I don't want it to be visible
at all times, which is why I hid it under the "Show advanced parameters"
checkbox. Hence a lot of changes.
Diffstat (limited to '')
-rw-r--r-- | index.html | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -59,6 +59,14 @@ params: help: | IPv6 address to assign to the client and its netmask in the CIDR format. example: fd::/48 + - id: keepalive + name: Keepalive + default: 25 + placeholder: Seconds between keepalive packets, typically 25 + help: | + Time to wait between sending keepalive packets, seconds. + example: 25 + advanced: true --- <h1>WireGuard configuration</h1> @@ -95,7 +103,7 @@ show the configuration that can be easily consumed by the new client.</p> </div> </div> {% for param in grp.items %} - <div class="form-group"> + <div class="form-group" id="param_{{ param.id }}_container" {% if param.advanced %}style="display: none;"{% endif %}> <label for="param_{{ param.id }}" class="col-sm-3 control-label">{{ param.name }}</label> <div class="col-sm-9"> <input type="text" class="form-control" id="param_{{ param.id }}" placeholder="{{ param.placeholder }}" aria-describedby="param_{{ param.id }}_help"> @@ -110,6 +118,15 @@ show the configuration that can be easily consumed by the new client.</p> </div> {% endfor %} <div class="col-md-offset-6 col-md-6"> + <div class="form-horizontal"> + <div class="form-group"> + <div class="col-sm-offset-3 col-sm-9"> + <div class="checkbox"> + <label class="text-muted"><input type="checkbox" id="advanced_params" onClick="advanced_params_on_click(this);">Show advanced parameters</label> + </div> + </div> + </div> + </div> <div class="row"> <div class="col-sm-offset-3 col-sm-9 text-center"> <button type="submit" class="btn btn-primary">Generate</button> |