impl ToSocketAddrs
for Hostname
(and possibly other NetAddress
variants)
#2535
Labels
good first issue
Good for newcomers
In #2134 we added the
FromStr
trait implementation toNetAddress
.As a follow-up it would be nice to also add a
ToSocketAddrs
implementation to allow easy resolution for ourNetAdresses
, which would be useful for theHostname
variant in particular.This would also allow us to get rid of the
NetAddress
newtype in LDK Node, which currently makes use ofToSocketAddrs
(cf. https://github.com/lightningdevkit/ldk-node/blob/a9bb2e9c5b9892213b244bc2fb474a5fe0c76802/src/types.rs#L360-L385).The text was updated successfully, but these errors were encountered: