mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2025-08-26 18:01:44 +02:00
Compare commits
6 Commits
v1.3
...
f799927f90
Author | SHA1 | Date | |
---|---|---|---|
|
f799927f90 | ||
|
8695f0026f | ||
|
3b552dba8a | ||
|
1ce60d8291 | ||
|
b5097b5a03 | ||
|
610842abac |
517
Cargo.lock
generated
517
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -7,12 +7,12 @@ authors = ["Slatian <baschdel@disroot.org>"]
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
lib-humus = { version="0.2", features=["axum-view+cookie"], git="https://codeberg.org/slatian/lib-humus.git" }
|
||||
lib-humus = { version="0.2", features=["axum-view+cookie"] }
|
||||
|
||||
axum = { version = "0.7", features = ["macros"] }
|
||||
axum-extra = { version = "0.9", features = ["cookie", "typed-header"] }
|
||||
axum-client-ip = "0.5"
|
||||
clap = { version = "4", features = ["derive"] }
|
||||
clap = { version = "4.4", features = ["derive"] }
|
||||
governor = "0.6"
|
||||
idna = "0.4"
|
||||
lazy_static = "1.4.0"
|
||||
|
@@ -86,7 +86,7 @@ impl Into<Protocol> for DnsProtocol {
|
||||
}
|
||||
|
||||
impl DnsResolverConfig {
|
||||
pub fn to_trust_resolver_config(
|
||||
pub fn to_hickory_resolver_config(
|
||||
&self
|
||||
) -> HickoryResolverConfig {
|
||||
let mut resolver = HickoryResolverConfig::new();
|
||||
|
@@ -6,7 +6,7 @@ use std::num::NonZeroU32;
|
||||
|
||||
mod dns;
|
||||
|
||||
pub use crate::config::dns::{DnsConfig, DnsProtocol, DnsResolverConfig};
|
||||
pub use crate::config::dns::{DnsConfig, DnsResolverConfig};
|
||||
|
||||
#[derive(Deserialize, Default, Clone)]
|
||||
pub struct EchoIpServiceConfig {
|
||||
|
@@ -227,7 +227,7 @@ async fn main() {
|
||||
for (key, resolver_config) in &config.dns.resolver {
|
||||
println!("Initalizing {} resolver ...", key);
|
||||
let resolver = TokioAsyncResolver::tokio(
|
||||
resolver_config.to_trust_resolver_config(),
|
||||
resolver_config.to_hickory_resolver_config(),
|
||||
Default::default()
|
||||
);
|
||||
dns_resolver_map.insert(key.clone(), resolver);
|
||||
|
Reference in New Issue
Block a user