mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-23 22:48:21 -05:00
fix
This commit is contained in:
parent
808707c43b
commit
d20c5c4dab
13
Cargo.lock
generated
13
Cargo.lock
generated
@ -3266,7 +3266,6 @@ dependencies = [
|
|||||||
"sync_wrapper",
|
"sync_wrapper",
|
||||||
"tokio 1.40.0",
|
"tokio 1.40.0",
|
||||||
"tokio-rustls",
|
"tokio-rustls",
|
||||||
"tokio-socks",
|
|
||||||
"tokio-util",
|
"tokio-util",
|
||||||
"tower-service",
|
"tower-service",
|
||||||
"url 2.5.2",
|
"url 2.5.2",
|
||||||
@ -4097,18 +4096,6 @@ dependencies = [
|
|||||||
"tokio 1.40.0",
|
"tokio 1.40.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "tokio-socks"
|
|
||||||
version = "0.5.2"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "0d4770b8024672c1101b3f6733eab95b18007dbe0847a8afe341fcf79e06043f"
|
|
||||||
dependencies = [
|
|
||||||
"either",
|
|
||||||
"futures-util",
|
|
||||||
"thiserror",
|
|
||||||
"tokio 1.38.0",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tokio-sync"
|
name = "tokio-sync"
|
||||||
version = "0.1.8"
|
version = "0.1.8"
|
||||||
|
@ -174,7 +174,7 @@ opt-level = "z"
|
|||||||
|
|
||||||
[features]
|
[features]
|
||||||
use-synonyms-search = ["thesaurus/static"]
|
use-synonyms-search = ["thesaurus/static"]
|
||||||
default = ["memory-cache", "socks"]
|
default = ["memory-cache"]
|
||||||
dhat-heap = ["dep:dhat"]
|
dhat-heap = ["dep:dhat"]
|
||||||
memory-cache = ["dep:moka"]
|
memory-cache = ["dep:moka"]
|
||||||
redis-cache = ["dep:redis", "dep:base64"]
|
redis-cache = ["dep:redis", "dep:base64"]
|
||||||
@ -182,4 +182,4 @@ compress-cache-results = ["dep:async-compression", "dep:cfg-if"]
|
|||||||
encrypt-cache-results = ["dep:chacha20poly1305", "dep:chacha20"]
|
encrypt-cache-results = ["dep:chacha20poly1305", "dep:chacha20"]
|
||||||
cec-cache-results = ["compress-cache-results", "encrypt-cache-results"]
|
cec-cache-results = ["compress-cache-results", "encrypt-cache-results"]
|
||||||
experimental-io-uring = ["actix-web/experimental-io-uring"]
|
experimental-io-uring = ["actix-web/experimental-io-uring"]
|
||||||
use-non-static-synonyms-search = ["thesaurus"]
|
use-non-static-synonyms-search = ["thesaurus"]
|
||||||
|
@ -123,12 +123,13 @@ impl Config {
|
|||||||
_ => parsed_cet,
|
_ => parsed_cet,
|
||||||
};
|
};
|
||||||
|
|
||||||
let proxy_opt = globals.get::<_, Option<String>>("proxy")?;
|
let proxy_opt = globals.get::<_, Option<String>>("proxy")?;
|
||||||
let proxy = proxy_opt.and_then(|proxy_str| {
|
let proxy = proxy_opt.and_then(|proxy_str| {
|
||||||
Proxy::all(proxy_str).ok().and_then(|_| {
|
Proxy::all(proxy_str).ok().and_then(|_| {
|
||||||
log::error!("Invalid proxy url, defaulting to no proxy.");
|
log::error!("Invalid proxy url, defaulting to no proxy.");
|
||||||
None
|
None
|
||||||
})
|
})
|
||||||
|
});
|
||||||
|
|
||||||
Ok(Config {
|
Ok(Config {
|
||||||
port: globals.get::<_, u16>("port")?,
|
port: globals.get::<_, u16>("port")?,
|
||||||
|
Loading…
Reference in New Issue
Block a user