From 16ee76ed83261d1490c29710083eda81e101825f Mon Sep 17 00:00:00 2001
From: Egor Tensin
Date: Fri, 18 Mar 2022 23:01:52 +0300
Subject: add "Tunnel all traffic" checkbox and DNS settings
---
index.html | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
(limited to 'index.html')
diff --git a/index.html b/index.html
index f3466a9..0267667 100644
--- a/index.html
+++ b/index.html
@@ -76,6 +76,27 @@ params:
Time to wait between sending keepalive packets, seconds.
example: 25
advanced: true
+ - id: tunnel_everything
+ name: Tunnel all traffic
+ type: checkbox
+ default: false
+ advanced: true
+ - id: dns_ipv4
+ name: DNS (IPv4)
+ default: 1.1.1.1,1.0.0.1
+ placeholder: IPv4 addresses of DNS servers
+ help: |
+ Comma-separated list of IPv4 addresses to use as DNS servers.
+ example: 1.1.1.1,1.0.0.1
+ advanced: true
+ - id: dns_ipv6
+ name: DNS (IPv6)
+ default: 2606:4700:4700::1111,2606:4700:4700::1001
+ placeholder: IPv6 addresses of DNS servers
+ help: |
+ Comma-separated list of IPv6 addresses to use as DNS servers.
+ example: 2606:4700:4700::1111,2606:4700:4700::1001
+ advanced: true
---
WireGuard configuration
@@ -112,6 +133,8 @@ show the configuration that can be easily consumed by the new client.
{% for param in grp.items %}
+ {% assign type = param.type | default: "text" %}
+ {% if type == "text" %}
+ {% endif %}
+ {% if type == "checkbox" %}
+
+ {% endif %}
{% endfor %}
--
cgit v1.2.3