Fixed unimportant warning, and changed some constants in DoH client.
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "alfis"
|
name = "alfis"
|
||||||
version = "0.8.3"
|
version = "0.8.4"
|
||||||
authors = ["Revertron <alfis@revertron.com>"]
|
authors = ["Revertron <alfis@revertron.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|||||||
+3
-2
@@ -7,6 +7,7 @@ use std::marker::{Send, Sync};
|
|||||||
use std::net::{SocketAddr, TcpStream, ToSocketAddrs, UdpSocket};
|
use std::net::{SocketAddr, TcpStream, ToSocketAddrs, UdpSocket};
|
||||||
#[cfg(feature = "doh")]
|
#[cfg(feature = "doh")]
|
||||||
use std::net::IpAddr;
|
use std::net::IpAddr;
|
||||||
|
#[cfg(feature = "doh")]
|
||||||
use std::num::NonZeroUsize;
|
use std::num::NonZeroUsize;
|
||||||
use std::sync::atomic::{AtomicUsize, Ordering, AtomicBool};
|
use std::sync::atomic::{AtomicUsize, Ordering, AtomicBool};
|
||||||
use std::sync::mpsc::{channel, Sender};
|
use std::sync::mpsc::{channel, Sender};
|
||||||
@@ -406,8 +407,8 @@ impl HttpsDnsClient {
|
|||||||
|
|
||||||
let agent = ureq::AgentBuilder::new()
|
let agent = ureq::AgentBuilder::new()
|
||||||
.user_agent(&client_name)
|
.user_agent(&client_name)
|
||||||
.timeout(std::time::Duration::from_secs(5))
|
.timeout(std::time::Duration::from_secs(3))
|
||||||
.max_idle_connections_per_host(2)
|
.max_idle_connections_per_host(4)
|
||||||
.max_idle_connections(16)
|
.max_idle_connections(16)
|
||||||
.resolver(move |addr: &str| {
|
.resolver(move |addr: &str| {
|
||||||
let addr = match addr.find(':') {
|
let addr = match addr.find(':') {
|
||||||
|
|||||||
Reference in New Issue
Block a user