smartdns: refresh config

This commit is contained in:
CN_SZTL 2020-02-29 03:08:33 +08:00
parent 14fa821288
commit 44c9ca5b2b
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
3 changed files with 5 additions and 4 deletions

View File

@ -84,7 +84,7 @@ o.cfgvalue = function(...)
end
---- Serve expired
o = s.taboption("settings", Flag, "serve_expired", translate("Serve expired"), translate("Attempts to serve old responses from cache with a TTL of 0 in the response without waiting for the actual resolution to finish."))
o = s:taboption("settings", Flag, "serve_expired", translate("Serve expired"), translate("Attempts to serve old responses from cache with a TTL of 0 in the response without waiting for the actual resolution to finish."))
o.rmempty = false
o.default = o.disabled
o.cfgvalue = function(...)
@ -248,7 +248,8 @@ s:option(Value, "name", translate("DNS Server Name"), translate("DNS Server Name
---- IP address
o = s:option(Value, "ip", translate("ip"), translate("DNS Server ip"))
o.datatype = "or(ipaddr, string)"
o.rmempty = false
o.rmempty = false
---- port
o = s:option(Value, "port", translate("port"), translate("DNS Server port"))
o.placeholder = "default"
@ -334,4 +335,3 @@ o.write = function()
end
return m

View File

@ -17,7 +17,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=smartdns
PKG_VERSION:=2.2020.19
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/pymumu/smartdns.git

View File

@ -2,6 +2,7 @@ config smartdns
option server_name 'smartdns'
option dualstack_ip_selection '1'
option prefetch_domain '1'
option serve_expired '1'
option seconddns_no_speed_check '0'
option seconddns_no_dualstack_selection '0'
option seconddns_no_cache '0'