Skip to content

impl ToSocketAddrs for Hostname (and possibly other NetAddress variants) #2535

@tnull

Description

@tnull

In #2134 we added the FromStr trait implementation to NetAddress.

As a follow-up it would be nice to also add a ToSocketAddrs implementation to allow easy resolution for our NetAdresses, which would be useful for the Hostname variant in particular.

This would also allow us to get rid of the NetAddress newtype in LDK Node, which currently makes use of ToSocketAddrs (cf. https://github.com/lightningdevkit/ldk-node/blob/a9bb2e9c5b9892213b244bc2fb474a5fe0c76802/src/types.rs#L360-L385).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions