This commit is contained in:
Frank Denis 2022-05-14 01:33:03 +02:00
parent 511b0b4388
commit e27ab7dee9
2 changed files with 16 additions and 14 deletions

View file

@ -1,14 +1,13 @@
use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6, ToSocketAddrs};
#[cfg(feature = "tls")]
use std::path::PathBuf;
use std::time::Duration;
use clap::Arg;
use libdoh::*;
use crate::constants::*;
use clap::Arg;
use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6, ToSocketAddrs};
use std::time::Duration;
#[cfg(feature = "tls")]
use std::path::PathBuf;
pub fn parse_opts(globals: &mut Globals) {
use crate::utils::{verify_remote_server, verify_sock_addr};
@ -237,6 +236,9 @@ pub fn parse_opts(globals: &mut Globals) {
println!("Check out https://dnscrypt.info/stamps/ to compute the actual stamps.\n")
} else {
println!("Please provide a fully qualified hostname (-H <hostname> command-line option) to get test DNS stamps for your server.\n");
println!(
"Please provide a fully qualified hostname (-H <hostname> command-line option) to get \
test DNS stamps for your server.\n"
);
}
}

View file

@ -8,17 +8,17 @@ mod config;
mod constants;
mod utils;
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
use std::sync::Arc;
use std::time::Duration;
use libdoh::odoh::ODoHRotator;
use libdoh::reexports::tokio;
use libdoh::*;
use crate::config::*;
use crate::constants::*;
use libdoh::odoh::ODoHRotator;
use libdoh::reexports::tokio;
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
use std::sync::Arc;
use std::time::Duration;
fn main() {
let mut runtime_builder = tokio::runtime::Builder::new_multi_thread();
runtime_builder.enable_all();