Skip to content

Commit

Permalink
chore(generator/client): dns.rules: Omit invert if disable_cache = false
Browse files Browse the repository at this point in the history
  • Loading branch information
muink authored and 1715173329 committed Jan 2, 2024
1 parent 90eb933 commit 47768b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/etc/homeproxy/scripts/generate_client.uc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
});
});
Expand Down

0 comments on commit 47768b1

Please sign in to comment.