Skip to content

Commit

Permalink
Merge pull request #5355 from nymtech/jmwample/dot
Browse files Browse the repository at this point in the history
DNS resolver configuration for internal HTTP client lookups
  • Loading branch information
jmwample authored Jan 23, 2025
2 parents 04fd197 + 8d10552 commit 9d01474
Show file tree
Hide file tree
Showing 5 changed files with 332 additions and 4 deletions.
130 changes: 130 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ handlebars = "3.5.5"
headers = "0.4.0"
hex = "0.4.3"
hex-literal = "0.3.3"
hickory-resolver = "0.24.2"
hkdf = "0.12.3"
hmac = "0.12.1"
http = "1"
Expand Down
7 changes: 7 additions & 0 deletions common/http-api-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,21 @@ async-trait = { workspace = true }
reqwest = { workspace = true, features = ["json"] }
http.workspace = true
url = { workspace = true }
once_cell = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }

nym-bin-common = { path = "../bin-common" }

[target."cfg(not(target_arch = \"wasm32\"))".dependencies]
hickory-resolver = { workspace = true, features = ["dns-over-https-rustls", "webpki-roots"] }

# for request timeout until https://github.com/seanmonstar/reqwest/issues/1135 is fixed
[target."cfg(target_arch = \"wasm32\")".dependencies.wasmtimer]
workspace = true
features = ["tokio"]

[dev-dependencies]
tokio = { workspace = true, features=["rt", "macros"] }
Loading

0 comments on commit 9d01474

Please sign in to comment.