Squashed 'luci-app-smartdns/' changes from f5a370f..2d56f2a
2d56f2a luci: upstream server support DoQ and DoH3 (#79) git-subtree-dir: luci-app-smartdns git-subtree-split: 2d56f2aef30da046154fb5b7d9118ad287d13e15
This commit is contained in:
parent
f0353c7f4a
commit
e9b8416aed
3 changed files with 181 additions and 161 deletions
|
|
@ -822,7 +822,7 @@ return view.extend({
|
|||
// Upstream servers;
|
||||
////////////////
|
||||
s = m.section(form.GridSection, "server", _("Upstream Servers"),
|
||||
_("Upstream Servers, support UDP, TCP protocol. Please configure multiple DNS servers, "
|
||||
_("Upstream Servers, support UDP, TCP, DoT, DoH, DoQ, DoH3 protocol. Please configure multiple DNS servers, "
|
||||
+ "including multiple foreign DNS servers."));
|
||||
s.anonymous = true;
|
||||
s.addremove = true;
|
||||
|
|
@ -853,6 +853,7 @@ return view.extend({
|
|||
o.depends("type", "udp");
|
||||
o.depends("type", "tcp");
|
||||
o.depends("type", "tls");
|
||||
o.depends("type", "quic");
|
||||
|
||||
// type;
|
||||
o = s.taboption("general", form.ListValue, "type", _("type"), _("DNS Server type"));
|
||||
|
|
@ -861,6 +862,8 @@ return view.extend({
|
|||
o.value("tcp", _("tcp"));
|
||||
o.value("tls", _("tls"));
|
||||
o.value("https", _("https"));
|
||||
o.value("quic", _("quic"));
|
||||
o.value("h3", _("h3"));
|
||||
o.default = "udp";
|
||||
o.rempty = false;
|
||||
|
||||
|
|
@ -904,8 +907,10 @@ return view.extend({
|
|||
o.datatype = "string"
|
||||
o.rempty = true
|
||||
o.modalonly = true;
|
||||
o.depends("type", "tls")
|
||||
o.depends("type", "https")
|
||||
o.depends("type", "tls");
|
||||
o.depends("type", "https");
|
||||
o.depends("type", "quic");
|
||||
o.depends("type", "h3");
|
||||
|
||||
// certificate verify
|
||||
o = s.taboption("advanced", form.Flag, "no_check_certificate", _("No check certificate"),
|
||||
|
|
@ -913,8 +918,10 @@ return view.extend({
|
|||
o.rmempty = true
|
||||
o.default = o.disabled
|
||||
o.modalonly = true;
|
||||
o.depends("type", "tls")
|
||||
o.depends("type", "https")
|
||||
o.depends("type", "tls");
|
||||
o.depends("type", "https");
|
||||
o.depends("type", "quic");
|
||||
o.depends("type", "h3");
|
||||
|
||||
// SNI host name
|
||||
o = s.taboption("advanced", form.Value, "host_name", _("TLS SNI name"),
|
||||
|
|
@ -923,8 +930,10 @@ return view.extend({
|
|||
o.datatype = "hostname"
|
||||
o.rempty = true
|
||||
o.modalonly = true;
|
||||
o.depends("type", "tls")
|
||||
o.depends("type", "https")
|
||||
o.depends("type", "tls");
|
||||
o.depends("type", "https");
|
||||
o.depends("type", "quic");
|
||||
o.depends("type", "h3");
|
||||
|
||||
// http host
|
||||
o = s.taboption("advanced", form.Value, "http_host", _("HTTP Host"),
|
||||
|
|
@ -933,7 +942,8 @@ return view.extend({
|
|||
o.datatype = "hostname"
|
||||
o.rempty = true
|
||||
o.modalonly = true;
|
||||
o.depends("type", "https")
|
||||
o.depends("type", "https");
|
||||
o.depends("type", "h3");
|
||||
|
||||
// SPKI pin
|
||||
o = s.taboption("advanced", form.Value, "spki_pin", _("TLS SPKI Pinning"),
|
||||
|
|
@ -943,8 +953,10 @@ return view.extend({
|
|||
o.datatype = "string"
|
||||
o.rempty = true
|
||||
o.modalonly = true;
|
||||
o.depends("type", "tls")
|
||||
o.depends("type", "https")
|
||||
o.depends("type", "tls");
|
||||
o.depends("type", "https");
|
||||
o.depends("type", "quic");
|
||||
o.depends("type", "h3");
|
||||
|
||||
// mark
|
||||
o = s.taboption("advanced", form.Value, "set_mark", _("Marking Packets"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue