pub fn tls_connect_with_bind_addr<P: RuntimeProvider>(
name_server: SocketAddr,
bind_addr: Option<SocketAddr>,
dns_name: String,
client_config: Arc<ClientConfig>,
provider: P,
) -> (Pin<Box<dyn Future<Output = Result<TlsStream<AsyncIoTokioAsStd<TokioTlsClientStream<P::Tcp>>>, Error>> + Send>>, BufDnsStreamHandle)
Available on crate feature
dns-over-rustls
only.Expand description
Creates a new TlsStream to the specified name_server connecting from a specific address.
ยงArguments
name_server
- IP and Port for the remote DNS resolverbind_addr
- IP and port to connect fromdns_name
- The DNS name associated with a certificate