Skip to content

Commit 605d45d

Browse files
committed
fixup! Allow setting default DNS resolvers for HRNs
1 parent 27058a8 commit 605d45d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/builder.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,11 @@ impl ArcedNodeBuilder {
845845
self.inner.write().unwrap().set_node_alias(node_alias).map(|_| ())
846846
}
847847

848+
/// Sets the default dns_resolvers to be used when sending payments to HRNs.
849+
pub fn set_dns_resolvers(&self, dns_resolvers: Vec<Destination>) -> Result<(), BuildError> {
850+
self.inner.write().unwrap().set_dns_resolvers(dns_resolvers).map(|_| ());
851+
}
852+
848853
/// Builds a [`Node`] instance with a [`SqliteStore`] backend and according to the options
849854
/// previously configured.
850855
pub fn build(&self) -> Result<Arc<Node>, BuildError> {

0 commit comments

Comments
 (0)