Skip to content

Commit

Permalink
fix(generator/client): fix address resolver for china dns
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
  • Loading branch information
1715173329 committed Jan 17, 2025
1 parent 062e558 commit 5cfc914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions root/etc/homeproxy/scripts/generate_client.uc
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,7 @@ if (!isEmpty(main_node)) {
if (length(direct_domain_list))
push(config.dns.rules, {
rule_set: 'direct-domain',
server: (routing_mode === 'bypass_mainland_china' ) ? 'china-dns' : 'default-dns',
address_resolver: 'default-dns'
server: (routing_mode === 'bypass_mainland_china' ) ? 'china-dns' : 'default-dns'
});

/* Filter out SVCB/HTTPS queries for "exquisite" Apple devices */
Expand All @@ -408,6 +407,7 @@ if (!isEmpty(main_node)) {
push(config.dns.servers, {
tag: 'china-dns',
address: china_dns_server,
address_resolver: 'default-dns',
detour: 'direct-out'
});

Expand Down

0 comments on commit 5cfc914

Please # to comment.