Skip to content

Commit b1efad0

Browse files
committed
fixup! Allow setting default DNS resolvers for HRNs
1 parent 7a90e84 commit b1efad0

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
@@ -847,6 +847,11 @@ impl ArcedNodeBuilder {
847847
self.inner.write().unwrap().set_node_alias(node_alias).map(|_| ())
848848
}
849849

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

0 commit comments

Comments
 (0)