diff --git a/crates/shadowsocks/src/dns_resolver/resolver.rs b/crates/shadowsocks/src/dns_resolver/resolver.rs index 0915b7095867..d2ee79919b5f 100644 --- a/crates/shadowsocks/src/dns_resolver/resolver.rs +++ b/crates/shadowsocks/src/dns_resolver/resolver.rs @@ -40,9 +40,9 @@ pub trait DnsResolve { #[cfg(feature = "hickory-dns")] pub struct HickoryDnsSystemResolver { resolver: ArcSwap, - #[cfg_attr(windows, allow(dead_code))] + #[cfg_attr(any(windows, target_os = "android"), allow(dead_code))] connect_opts: ConnectOpts, - #[cfg_attr(windows, allow(dead_code))] + #[cfg_attr(any(windows, target_os = "android"), allow(dead_code))] opts: Option, }