Skip to content

When dns.ipv6 disabled ipv6 will fail #976

@spongebob888

Description

@spongebob888

If dns.ipv6 is disabled, even if global ipv6 is enabled, the ipv6 traffic will fail in direct outbound. This is caused by following code:

let remote_ip = resolver
.resolve(sess.destination.host().as_str(), false)
.map_err(map_io_error)
.await?
.ok_or_else(|| std::io::Error::other("no dns result"))?;

It will regard ipv6 address as a domain and try to resolve it and failed.

Don't know this is intended or a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions