From 47768b1342b126f1dff069bac615357426d3e905 Mon Sep 17 00:00:00 2001 From: Anya Lin Date: Mon, 1 Jan 2024 16:57:35 +0800 Subject: [PATCH] chore(generator/client): dns.rules: Omit invert if disable_cache = false --- root/etc/homeproxy/scripts/generate_client.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/homeproxy/scripts/generate_client.uc b/root/etc/homeproxy/scripts/generate_client.uc index 6e608935..6a95d4d6 100755 --- a/root/etc/homeproxy/scripts/generate_client.uc +++ b/root/etc/homeproxy/scripts/generate_client.uc @@ -418,7 +418,7 @@ if (!isEmpty(main_node)) { invert: (cfg.invert === '1') || null, outbound: get_outbound(cfg.outbound), server: get_resolver(cfg.server), - disable_cache: (cfg.dns_disable_cache === '1'), + disable_cache: (cfg.dns_disable_cache === '1') || null, rewrite_ttl: strToInt(cfg.rewrite_ttl) }); });