Skip to content

Commit

Permalink
feat(dns): Enable hickory-dns (#171)
Browse files Browse the repository at this point in the history
Let's enable this and over the legacy hyper Gai resolver. Will deploy to
canary first and make sure everything looks safe
  • Loading branch information
evanpurkhiser authored Sep 27, 2024
1 parent 54abca7 commit 6c4ecb2
Show file tree
Hide file tree
Showing 3 changed files with 156 additions and 5 deletions.
158 changes: 154 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ anyhow = "1.0.66"
clap = { version = "4.4.6", features = ["derive"] }
chrono = { version = "0.4.31", default-features = false, features = ["std", "serde"] }
httpmock = "0.7.0-rc.1"
reqwest = "0.12.4"
reqwest = { version = "0.12.4", features = ["hickory-dns"] }
rust_arroyo = { version = "*", git = "https://github.com/getsentry/arroyo", rev = "0b84afc07131d8b8d48abcb7c8de8cfa2a98e526" }
tokio = { version = "1.28.0", features = ["macros", "sync", "tracing", "signal", "rt-multi-thread", "test-util"] }
uuid = { version = "1.8.0", features = ["serde", "v4"] }
Expand Down
1 change: 1 addition & 0 deletions src/checker/http_checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ impl HttpChecker {
default_headers.insert("User-Agent", UPTIME_USER_AGENT.to_string().parse().unwrap());

let client = ClientBuilder::new()
.hickory_dns(true)
.default_headers(default_headers)
.build()
.expect("Failed to build checker client");
Expand Down

0 comments on commit 6c4ecb2

Please sign in to comment.