add proxy hostname to response (but this isn't elegant/safe)

This commit is contained in:
Brandon Thomas
2020-09-13 06:37:24 -04:00
parent 77ad6a7e08
commit f2b0ec1c46
4 changed files with 54 additions and 3 deletions
Generated
+19 -1
View File
@@ -225,6 +225,17 @@ dependencies = [
"libc",
]
[[package]]
name = "hostname"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c731c3e10504cc8ed35cfe2f1db4c9274c3d35fa486e3b31df46f068ef3e867"
dependencies = [
"libc",
"match_cfg",
"winapi 0.3.9",
]
[[package]]
name = "http"
version = "0.2.1"
@@ -350,6 +361,12 @@ dependencies = [
"cfg-if",
]
[[package]]
name = "match_cfg"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ffbee8634e0d45d258acb448e7eaab3fce7a0a467395d4d9f228e3c1f01fb2e4"
[[package]]
name = "memchr"
version = "2.3.3"
@@ -795,11 +812,12 @@ checksum = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382"
[[package]]
name = "tts-service-proxy"
version = "0.0.1"
version = "0.0.2"
dependencies = [
"anyhow",
"env_logger",
"futures",
"hostname",
"hyper",
"hyper-reverse-proxy",
"log",