Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 02ad405

Browse files
committed
Make usable docker image
1 parent 4343b55 commit 02ad405

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "http-request-duplicator"
3-
version = "0.3.1"
3+
version = "0.4.1"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -12,7 +12,7 @@ clap = { version = "4.5.4", features = ["derive", "env"] }
1212
hyper = "0.14.28"
1313
once_cell = "1.19.0"
1414
quinn-proto = "0.10.6"
15-
reqwest = { version = "0.11.26", features = ["rustls-tls", "http3", "brotli", "trust-dns"], default-features = false }
15+
reqwest = { version = "0.11.27", features = ["rustls-tls", "http3", "brotli", "hickory-dns"], default-features = false }
1616
serde = { version = "1.0.200", features = ["derive"] }
1717
serde_json = "1.0.116"
1818
tap = "1.0.1"

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ ARG NAME
3939
ENV NAME ${NAME}
4040
COPY --chown=root:root --from=builder /usr/src/${NAME}/CREDITS /usr/src/${NAME}/LICENSE /usr/share/licenses/${NAME}/
4141
COPY --chown=root:root --from=builder /usr/src/${NAME}/target/release/${NAME} /usr/bin/${NAME}
42-
CMD [ "/usr/bin/${NAME}" ]
42+
CMD [ "sh", "-c", "/usr/bin/${NAME}" ]

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fn create_client(timeout: u64) -> reqwest::Client {
4848
.set_quic_receive_window(quinn_proto::VarInt::MAX)
4949
.set_quic_send_window(u64::MAX)
5050
.brotli(true)
51-
.trust_dns(true)
51+
.hickory_dns(true)
5252
.build()
5353
.unwrap()
5454
}

0 commit comments

Comments
 (0)