Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/srv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub(crate) struct LookupHosts {
}

impl LookupHosts {
#[cfg(feature = "dns-resolver")]
pub(crate) fn validate(mut self, original_hostname: &str, dm: DomainMismatch) -> Result<Self> {
let original_hostname_parts: Vec<_> = original_hostname.split('.').collect();
let original_domain_name = if original_hostname_parts.len() >= 3 {
Expand Down Expand Up @@ -261,7 +262,10 @@ pub(crate) struct SrvResolver {}

#[cfg(not(feature = "dns-resolver"))]
impl SrvResolver {
pub(crate) async fn new(_config: Option<ResolverConfig>) -> Result<Self> {
pub(crate) async fn new(
_config: Option<ResolverConfig>,
_srv_service_name: Option<String>,
) -> Result<Self> {
Ok(Self {})
}

Expand Down