parent
1809b7ab33
commit
8578e36522
@ -1610,7 +1610,7 @@ start_dns() {
|
|||||||
-USE_DIRECT_LIST "${USE_DIRECT_LIST}" -USE_PROXY_LIST "${USE_PROXY_LIST}" -USE_BLOCK_LIST "${USE_BLOCK_LIST}" -USE_GFW_LIST "${USE_GFW_LIST}" -CHN_LIST "${CHN_LIST}" \
|
-USE_DIRECT_LIST "${USE_DIRECT_LIST}" -USE_PROXY_LIST "${USE_PROXY_LIST}" -USE_BLOCK_LIST "${USE_BLOCK_LIST}" -USE_GFW_LIST "${USE_GFW_LIST}" -CHN_LIST "${CHN_LIST}" \
|
||||||
-TCP_NODE ${TCP_NODE} -DEFAULT_PROXY_MODE ${TCP_PROXY_MODE} -NO_PROXY_IPV6 ${DNSMASQ_FILTER_PROXY_IPV6:-0} -NFTFLAG ${nftflag:-0} \
|
-TCP_NODE ${TCP_NODE} -DEFAULT_PROXY_MODE ${TCP_PROXY_MODE} -NO_PROXY_IPV6 ${DNSMASQ_FILTER_PROXY_IPV6:-0} -NFTFLAG ${nftflag:-0} \
|
||||||
-NO_LOGIC_LOG ${NO_LOGIC_LOG:-0}
|
-NO_LOGIC_LOG ${NO_LOGIC_LOG:-0}
|
||||||
/etc/init.d/dnsmasq restart >/dev/null 2>&1
|
lua $APP_PATH/helper_dnsmasq.lua logic_restart -LOG 1
|
||||||
else
|
else
|
||||||
#Run a copy dnsmasq instance, DNS hijack for that need proxy devices.
|
#Run a copy dnsmasq instance, DNS hijack for that need proxy devices.
|
||||||
GLOBAL_DNSMASQ_PORT=$(get_new_port 11400)
|
GLOBAL_DNSMASQ_PORT=$(get_new_port 11400)
|
||||||
@ -2015,7 +2015,6 @@ start() {
|
|||||||
}
|
}
|
||||||
[ -n "$USE_TABLES" ] && source $APP_PATH/${USE_TABLES}.sh start
|
[ -n "$USE_TABLES" ] && source $APP_PATH/${USE_TABLES}.sh start
|
||||||
set_cache_var "USE_TABLES" "$USE_TABLES"
|
set_cache_var "USE_TABLES" "$USE_TABLES"
|
||||||
[ -z "$(get_cache_var "ACL_default_dns_port")" ] && lua $APP_PATH/helper_dnsmasq.lua logic_restart -LOG 1
|
|
||||||
if [ "$ENABLED_DEFAULT_ACL" == 1 ] || [ "$ENABLED_ACLS" == 1 ]; then
|
if [ "$ENABLED_DEFAULT_ACL" == 1 ] || [ "$ENABLED_ACLS" == 1 ]; then
|
||||||
bridge_nf_ipt=$(sysctl -e -n net.bridge.bridge-nf-call-iptables)
|
bridge_nf_ipt=$(sysctl -e -n net.bridge.bridge-nf-call-iptables)
|
||||||
set_cache_var "bak_bridge_nf_ipt" "$bridge_nf_ipt"
|
set_cache_var "bak_bridge_nf_ipt" "$bridge_nf_ipt"
|
||||||
|
@ -102,11 +102,9 @@ function logic_restart(var)
|
|||||||
tinsert(dns_table, v)
|
tinsert(dns_table, v)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if dns_table and #dns_table > 0 then
|
|
||||||
uci:set_list("dhcp", "@dnsmasq[0]", "server", dns_table)
|
uci:set_list("dhcp", "@dnsmasq[0]", "server", dns_table)
|
||||||
uci:commit("dhcp")
|
uci:commit("dhcp")
|
||||||
end
|
end
|
||||||
end
|
|
||||||
sys.call("/etc/init.d/dnsmasq restart >/dev/null 2>&1")
|
sys.call("/etc/init.d/dnsmasq restart >/dev/null 2>&1")
|
||||||
restore_servers()
|
restore_servers()
|
||||||
else
|
else
|
||||||
|
@ -175,7 +175,7 @@ index 551c824..2a6a814 100644
|
|||||||
config global_forwarding
|
config global_forwarding
|
||||||
option tcp_no_redir_ports 'disable'
|
option tcp_no_redir_ports 'disable'
|
||||||
diff --git a/luci-app-passwall/root/usr/share/passwall/app.sh b/luci-app-passwall/root/usr/share/passwall/app.sh
|
diff --git a/luci-app-passwall/root/usr/share/passwall/app.sh b/luci-app-passwall/root/usr/share/passwall/app.sh
|
||||||
index 57f52f0..14aa4e4 100755
|
index f5d7466..fb3f64d 100755
|
||||||
--- a/luci-app-passwall/root/usr/share/passwall/app.sh
|
--- a/luci-app-passwall/root/usr/share/passwall/app.sh
|
||||||
+++ b/luci-app-passwall/root/usr/share/passwall/app.sh
|
+++ b/luci-app-passwall/root/usr/share/passwall/app.sh
|
||||||
@@ -1589,9 +1589,7 @@ start_dns() {
|
@@ -1589,9 +1589,7 @@ start_dns() {
|
||||||
@ -237,7 +237,7 @@ index 57f52f0..14aa4e4 100755
|
|||||||
/etc/init.d/dnsmasq restart >/dev/null 2>&1
|
/etc/init.d/dnsmasq restart >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
@@ -2047,23 +2045,11 @@ stop() {
|
@@ -2046,23 +2044,11 @@ stop() {
|
||||||
source $APP_PATH/helper_smartdns.sh del
|
source $APP_PATH/helper_smartdns.sh del
|
||||||
rm -rf $GLOBAL_DNSMASQ_CONF
|
rm -rf $GLOBAL_DNSMASQ_CONF
|
||||||
rm -rf $GLOBAL_DNSMASQ_CONF_PATH
|
rm -rf $GLOBAL_DNSMASQ_CONF_PATH
|
||||||
@ -266,7 +266,7 @@ index 57f52f0..14aa4e4 100755
|
|||||||
rm -rf $TMP_PATH
|
rm -rf $TMP_PATH
|
||||||
rm -rf /tmp/lock/${CONFIG}_socks_auto_switch*
|
rm -rf /tmp/lock/${CONFIG}_socks_auto_switch*
|
||||||
echolog "清空并关闭相关程序和缓存完成。"
|
echolog "清空并关闭相关程序和缓存完成。"
|
||||||
@@ -2122,7 +2108,6 @@ DNS_CACHE=0
|
@@ -2121,7 +2107,6 @@ DNS_CACHE=0
|
||||||
REMOTE_DNS=$(config_t_get global remote_dns 1.1.1.1:53 | sed 's/#/:/g' | sed -E 's/\:([^:]+)$/#\1/g')
|
REMOTE_DNS=$(config_t_get global remote_dns 1.1.1.1:53 | sed 's/#/:/g' | sed -E 's/\:([^:]+)$/#\1/g')
|
||||||
USE_DEFAULT_DNS=$(config_t_get global use_default_dns direct)
|
USE_DEFAULT_DNS=$(config_t_get global use_default_dns direct)
|
||||||
FILTER_PROXY_IPV6=$(config_t_get global filter_proxy_ipv6 0)
|
FILTER_PROXY_IPV6=$(config_t_get global filter_proxy_ipv6 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user