conf: force TYPE65 SOA enable by default

This commit is contained in:
Nick Peng
2022-11-23 22:29:56 +08:00
parent 5a356e577d
commit bd31cc0a36
4 changed files with 5 additions and 3 deletions

View File

@@ -96,6 +96,7 @@ cache-size 16384
# force specific qtype return soa # force specific qtype return soa
# force-qtype-SOA [qtypeid |...] # force-qtype-SOA [qtypeid |...]
# force-qtype-SOA 65 28 # force-qtype-SOA 65 28
force-qtype-SOA 65
# Enable IPV4, IPV6 dual stack IP optimization selection strategy # Enable IPV4, IPV6 dual stack IP optimization selection strategy
# dualstack-ip-selection-threshold [num] (0~1000) # dualstack-ip-selection-threshold [num] (0~1000)
@@ -133,6 +134,7 @@ cache-size 16384
# log-size: size of each log file, support k,m,g # log-size: size of each log file, support k,m,g
# log-num: number of logs # log-num: number of logs
log-level info log-level info
# log-file /var/log/smartdns/smartdns.log # log-file /var/log/smartdns/smartdns.log
# log-size 128k # log-size 128k
# log-num 2 # log-num 2

View File

@@ -126,7 +126,7 @@ o = s:taboption("settings", Flag, "force_https_soa", translate("Force HTTPS SOA"
o.rmempty = false o.rmempty = false
o.default = o.enabled o.default = o.enabled
o.cfgvalue = function(...) o.cfgvalue = function(...)
return Flag.cfgvalue(...) or "0" return Flag.cfgvalue(...) or "1"
end end
---- rr-ttl ---- rr-ttl

View File

@@ -196,7 +196,7 @@ return view.extend({
// Force HTTPS SOA // Force HTTPS SOA
o = s.taboption("settings", form.Flag, "force_https_soa", _("Force HTTPS SOA"), _("Force HTTPS SOA.")); o = s.taboption("settings", form.Flag, "force_https_soa", _("Force HTTPS SOA"), _("Force HTTPS SOA."));
o.rmempty = false; o.rmempty = false;
o.default = o.disabled; o.default = o.enabled;
// rr-ttl; // rr-ttl;
o = s.taboption("settings", form.Value, "rr_ttl", _("Domain TTL"), _("TTL for all domain result.")); o = s.taboption("settings", form.Value, "rr_ttl", _("Domain TTL"), _("TTL for all domain result."));

View File

@@ -316,7 +316,7 @@ load_service()
config_get force_aaaa_soa "$section" "force_aaaa_soa" "0" config_get force_aaaa_soa "$section" "force_aaaa_soa" "0"
[ "$force_aaaa_soa" = "1" ] && qtype_soa_list="$qtype_soa_list 28" [ "$force_aaaa_soa" = "1" ] && qtype_soa_list="$qtype_soa_list 28"
config_get force_https_soa "$section" "force_https_soa" "0" config_get force_https_soa "$section" "force_https_soa" "1"
[ "$force_https_soa" = "1" ] && qtype_soa_list="$qtype_soa_list 65" [ "$force_https_soa" = "1" ] && qtype_soa_list="$qtype_soa_list 65"
config_get auto_set_dnsmasq "$section" "auto_set_dnsmasq" "1" config_get auto_set_dnsmasq "$section" "auto_set_dnsmasq" "1"