Skip to content

Commit

Permalink
trust-dns-resolver requires explicit enables feature dns-over-https-r…
Browse files Browse the repository at this point in the history
…ustls

fix #367
  • Loading branch information
zonyitoo committed Dec 30, 2020
1 parent 2a92ab8 commit e048bc2
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
24 changes: 24 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/shadowsocks-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ manager = ["server"]
# Enables trust-dns for replacing tokio's builtin DNS resolver
trust-dns = ["trust-dns-resolver", "shadowsocks/trust-dns"]
dns-over-tls = ["trust-dns", "trust-dns-resolver/dns-over-tls", "trust-dns-resolver/dns-over-rustls"]
dns-over-https = ["trust-dns", "trust-dns-resolver/dns-over-https"]
dns-over-https = ["trust-dns", "trust-dns-resolver/dns-over-https", "trust-dns-resolver/dns-over-https-rustls"]

# Enable DNS-relay
local-dns = ["local", "trust-dns", "rand"]
Expand Down
4 changes: 2 additions & 2 deletions crates/shadowsocks-service/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1009,15 +1009,15 @@ impl Config {
protocol: Protocol::Udp,
tls_dns_name: None,
trust_nx_responses: false,
#[cfg(feature = "dns-over-tls")]
#[cfg(any(feature = "dns-over-tls", feature = "dns-over-https"))]
tls_config: None,
});
c.add_name_server(NameServerConfig {
socket_addr,
protocol: Protocol::Tcp,
tls_dns_name: None,
trust_nx_responses: false,
#[cfg(feature = "dns-over-tls")]
#[cfg(any(feature = "dns-over-tls", feature = "dns-over-https"))]
tls_config: None,
});
}
Expand Down

0 comments on commit e048bc2

Please sign in to comment.