Add DNS resolution to cli tools

This commit is contained in:
Michael Vines
2019-04-13 19:34:27 -07:00
committed by Grimes
parent 6859907df9
commit 0767c0c07f
13 changed files with 100 additions and 57 deletions

View File

@ -78,7 +78,9 @@ fn main() {
let network_addr = matches
.value_of("network")
.map(|network| network.parse().expect("failed to parse network address"))
.map(|network| {
solana_netutil::parse_host_port(network).expect("failed to parse network address")
})
.unwrap();
let leader_info = ContactInfo::new_gossip_entry_point(&network_addr);
@ -94,6 +96,5 @@ fn main() {
.unwrap();
replicator.run();
replicator.close();
}