luci: add response mode option
This commit is contained in:
@@ -199,6 +199,16 @@ return view.extend({
|
||||
return true;
|
||||
}
|
||||
|
||||
// response mode;
|
||||
o = s.taboption("advanced", form.ListValue, "response_mode", _("Response Mode"),
|
||||
_("Smartdns response mode, First Ping: return the first ping IP, Fastest IP: return the fastest IP, Fastest Response: return the fastest DNS response."));
|
||||
o.rmempty = true;
|
||||
o.placeholder = "default";
|
||||
o.value("", _("default"));
|
||||
o.value("first-ping", _("First Ping"));
|
||||
o.value("fastest-ip", _("Fastest IP"));
|
||||
o.value("fastest-response", _("Fastest Response"));
|
||||
|
||||
// Enable TCP server;
|
||||
o = s.taboption("advanced", form.Flag, "tcp_server", _("TCP Server"), _("Enable TCP DNS Server"));
|
||||
o.rmempty = false;
|
||||
@@ -633,7 +643,7 @@ return view.extend({
|
||||
o.modalonly = true;
|
||||
o.optional = true;
|
||||
o.rempty = true;
|
||||
o.validate = function(section_id, value) {
|
||||
o.validate = function (section_id, value) {
|
||||
var flag = this.formvalue(section_id);
|
||||
if (flag == "0") {
|
||||
return true;
|
||||
@@ -651,7 +661,7 @@ return view.extend({
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// other args
|
||||
o = s.taboption("advanced", form.Value, "addition_arg", _("Additional Server Args"),
|
||||
_("Additional Args for upstream dns servers"))
|
||||
|
||||
Reference in New Issue
Block a user