Skip to content

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

Closed

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).

Activity

  1. slanesuke commented on Sep 7, 2023

    @slanesuke
    Contributor

    I'll take this one as my first issue if that works?

  2. tnull commented on Sep 7, 2023

    @tnull
    ContributorAuthor

    I'll take this one as my first issue if that works?

    Sure, go for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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