Skip to content

DNS resolver returns SocketAddr which has meaningless port  #2516

@malaire

Description

@malaire

DNS resolver returns SocketAddr with port even though port would only be meaningful if service is specified for underlying getaddrinfo. However that is not possible as DNS resolver only takes Name as input.

I think this should be fixed by changing return value to IpAddr instead of SocketAddr.

Alternatively DNS resolver could be changed to take service as input in addition to Name

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions