From 6235e5d766661c9471b265a6e17266d2af3f1ba8 Mon Sep 17 00:00:00 2001 From: sbwml Date: Wed, 29 Mar 2023 07:41:22 +0800 Subject: [PATCH] luci-app-mosdns: config.yaml: fix `whitelist` DNS cache problem --- luci-app-mosdns/root/etc/mosdns/config_custom.yaml | 5 +++-- luci-app-mosdns/root/usr/share/mosdns/default.yaml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/luci-app-mosdns/root/etc/mosdns/config_custom.yaml b/luci-app-mosdns/root/etc/mosdns/config_custom.yaml index f67722e..798dcab 100644 --- a/luci-app-mosdns/root/etc/mosdns/config_custom.yaml +++ b/luci-app-mosdns/root/etc/mosdns/config_custom.yaml @@ -169,7 +169,9 @@ plugins: type: sequence args: - matches: qname $whitelist - exec: $local_sequence + exec: $cache + - exec: $local_sequence + - exec: jump has_resp_sequence # 查询灰名单 - tag: query_is_greylist_domain @@ -204,7 +206,6 @@ plugins: - exec: $redirect - exec: jump has_resp_sequence - exec: $query_is_whitelist_domain - - exec: jump has_resp_sequence - exec: $query_is_reject_domain - exec: $cache - exec: jump has_resp_sequence diff --git a/luci-app-mosdns/root/usr/share/mosdns/default.yaml b/luci-app-mosdns/root/usr/share/mosdns/default.yaml index f1cf76b..6ccaf21 100644 --- a/luci-app-mosdns/root/usr/share/mosdns/default.yaml +++ b/luci-app-mosdns/root/usr/share/mosdns/default.yaml @@ -154,7 +154,9 @@ plugins: type: sequence args: - matches: qname $whitelist - exec: $local_sequence + exec: $cache + - exec: $local_sequence + - exec: jump has_resp_sequence - tag: query_is_greylist_domain type: sequence @@ -186,7 +188,6 @@ plugins: - exec: $redirect - exec: jump has_resp_sequence - exec: $query_is_whitelist_domain - - exec: jump has_resp_sequence - exec: $query_is_reject_domain - exec: $cache - exec: jump has_resp_sequence