smartdns: adjust luci conf

This commit is contained in:
CN_SZTL 2020-02-22 01:02:31 +08:00
parent 0ab68647c1
commit 6b2289c553
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 29 additions and 2 deletions

View File

@ -62,8 +62,8 @@ define Package/smartdns/install
$(INSTALL_BIN) $(PKG_BUILD_DIR)/package/openwrt/files/etc/init.d/smartdns $(1)/etc/init.d/smartdns
$(INSTALL_CONF) $(PKG_BUILD_DIR)/package/openwrt/address.conf $(1)/etc/smartdns/address.conf
$(INSTALL_CONF) $(PKG_BUILD_DIR)/package/openwrt/blacklist-ip.conf $(1)/etc/smartdns/blacklist-ip.conf
$(INSTALL_CONF) ./conf/custom.conf $(1)/etc/smartdns/custom.conf
$(INSTALL_CONF) $(PKG_BUILD_DIR)/package/openwrt/files/etc/config/smartdns $(1)/etc/config/smartdns
$(INSTALL_CONF) $(CURDIR)/conf/custom.conf $(1)/etc/smartdns/custom.conf
$(INSTALL_CONF) $(CURDIR)/conf/smartdns.conf $(1)/etc/config/smartdns
endef
$(eval $(call BuildPackage,smartdns))

View File

@ -0,0 +1,27 @@
config smartdns
option server_name 'smartdns'
option dualstack_ip_selection '1'
option prefetch_domain '1'
option seconddns_no_speed_check '0'
option seconddns_no_dualstack_selection '0'
option seconddns_no_cache '0'
option tcp_server '0'
option seconddns_tcp_server '0'
option coredump '0'
option port '6053'
option ipv6_server '0'
option redirect 'dnsmasq-upstream'
option seconddns_port '5335'
option seconddns_server_group 'fq_dns'
option seconddns_enabled '1'
option seconddns_no_rule_addr '0'
option seconddns_no_rule_nameserver '0'
option seconddns_no_rule_ipset '0'
option seconddns_no_rule_soa '0'
option enabled '0'
option cache_size '20000'
option rr_ttl '3600'
option rr_ttl_min '5'
list old_redirect 'dnsmasq-upstream'
list old_port '6053'
list old_enabled '0'