mirror of
https://github.com/pymumu/smartdns.git
synced 2025-12-20 01:11:42 +08:00
fix: allow set and default empty server name
中文翻译中明确说明 server name 设置为空时使用主机名,但是多年来 luci 页面并不允许其设置为空。 本提交使默认值变为占位符并允许默认值为空。 fix: 2173
This commit is contained in:
@@ -45,9 +45,9 @@ o.rempty = false
|
||||
|
||||
---- server name
|
||||
o = s:taboption("settings", Value, "server_name", translate("Server Name"), translate("Smartdns server name"))
|
||||
o.default = "smartdns"
|
||||
o.placeholder = "server name"
|
||||
o.datatype = "hostname"
|
||||
o.rempty = false
|
||||
o.rempty = true
|
||||
|
||||
---- Port
|
||||
o = s:taboption("settings", Value, "port", translate("Local Port"),
|
||||
|
||||
@@ -149,9 +149,9 @@ return view.extend({
|
||||
|
||||
// server name;
|
||||
o = s.taboption("settings", form.Value, "server_name", _("Server Name"), _("Smartdns server name"));
|
||||
o.default = "smartdns";
|
||||
o.placeholder = "server name";
|
||||
o.datatype = "hostname";
|
||||
o.rempty = false;
|
||||
o.rempty = true;
|
||||
|
||||
// Port;
|
||||
o = s.taboption("settings", form.Value, "port", _("Local Port"),
|
||||
|
||||
Reference in New Issue
Block a user