Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidDNSNameError when using https with IP address #393

Closed
aellwein opened this issue Jun 11, 2021 · 2 comments
Closed

InvalidDNSNameError when using https with IP address #393

aellwein opened this issue Jun 11, 2021 · 2 comments

Comments

@aellwein
Copy link

Given this example

fn main() {
    match ureq::post("https://172.217.16.142").send_string("test") {
        Err(e) => println!("{:?}", e),
        Ok(r) => println!("response was: {:?}", r),
    }
}

The result is always an error, looks like this:

Transport(Transport { kind: Dns, message: None, url: Some(Url { scheme: "https", username: "", password: None, host: Some(Ipv4(172.217.16.142)), port: None, path: "/", query: None, fragment: None }), source: Some(InvalidDNSNameError), response: None })
@jsha
Copy link
Collaborator

jsha commented Jun 11, 2021 via email

@algesten
Copy link
Owner

The native-tls feature is coming in 2.4.0 – released any day now.

Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants