luci-app-sfe: fix filter-aaaa setting
This commit is contained in:
parent
2dedd96cf4
commit
585fb80656
@ -3,6 +3,7 @@ config sfe
|
||||
option ipv6 '0'
|
||||
option wifi '0'
|
||||
option bbr '0'
|
||||
option filter_aaaa '1'
|
||||
option dns '0'
|
||||
option dnscache_enable '1'
|
||||
option dns_server '114.114.114.114,114.114.115.115,223.5.5.5,223.6.6.6,180.76.76.76,119.29.29.29,119.28.28.28,1.2.4.8,210.2.4.8'
|
||||
|
||||
@ -224,13 +224,6 @@ start_service() {
|
||||
dns=$(uci get sfe.config.dns 2>/dev/null)
|
||||
dnscache_enable=$(uci get sfe.config.dnscache_enable 2>/dev/null)
|
||||
bbr=$(uci get sfe.config.bbr 2>/dev/null)
|
||||
aaaa=$(uci get sfe.config.filter_aaaa 2>/dev/null)
|
||||
if [ $aaaa -eq 1 ]; then
|
||||
sed -i '/filter-aaaa/d' /etc/dnsmasq.conf
|
||||
echo "filter-aaaa" >> /etc/dnsmasq.conf
|
||||
else
|
||||
sed -i '/filter-aaaa/d' /etc/dnsmasq.conf
|
||||
fi
|
||||
|
||||
if [ $enable -eq 1 ]; then
|
||||
! (lsmod | grep fast_classifier >/dev/null) && (modprobe fast_classifier)
|
||||
@ -277,6 +270,9 @@ start_service() {
|
||||
sysctl -w net.ipv4.tcp_congestion_control=cubic
|
||||
fi
|
||||
|
||||
uci set dhcp.@dnsmasq[0].filter_aaaa=$(uci get sfe.@sfe[0].filter_aaaa)
|
||||
uci commit dhcp
|
||||
|
||||
if [ "$DNSMASQ_RESTART" = N ]; then
|
||||
/etc/init.d/dnsmasq restart
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user