aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-02-16 12:46:39 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-02-16 12:46:39 -0800
commitbfdeb3439a617890a807a1ac643f84038b43f165 (patch)
treeeeecd3d0d8a4d361129564662aa33f1a0e53aa3c /src
parentb2a4403c70b4f1b270cb8d0d26480789b559c4fc (diff)
downloadgeniza-bfdeb3439a617890a807a1ac643f84038b43f165.tar.gz
geniza-bfdeb3439a617890a807a1ac643f84038b43f165.zip
update DNS library to get bugfix
Diffstat (limited to 'src')
-rw-r--r--src/discovery.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/discovery.rs b/src/discovery.rs
index aef2a60..47a0cc4 100644
--- a/src/discovery.rs
+++ b/src/discovery.rs
@@ -3,7 +3,7 @@ use errors::*;
use std::net::{IpAddr, SocketAddr};
use make_discovery_key;
use data_encoding::HEXLOWER;
-use resolve::{self, DnsConfig, DnsResolver, resolve_host};
+use resolve::{DnsConfig, DnsResolver, resolve_host};
use resolve::record::Srv;
pub fn discover_peers_dns(dat_key: &[u8]) -> Result<Vec<SocketAddr>> {
@@ -16,7 +16,7 @@ pub fn discover_peers_dns(dat_key: &[u8]) -> Result<Vec<SocketAddr>> {
let dns1: Vec<IpAddr> = resolve_host("discovery1.publicbits.org")?.collect();
let dns2: Vec<IpAddr> = resolve_host("discovery2.publicbits.org")?.collect();
- let default_config = resolve::default_config()?;
+ let default_config = DnsConfig::load_default()?;
let config = DnsConfig {
name_servers: vec![
SocketAddr::from((dns1[0], 53)),