Add support for HAProxy proxy protocol for listeners

This commit is contained in:
Lambda 2024-09-15 15:55:47 +00:00
parent 99f3e2aecd
commit 3247c64cd8
7 changed files with 234 additions and 14 deletions

12
Cargo.lock generated
View file

@ -827,7 +827,9 @@ dependencies = [
"opentelemetry_sdk",
"parking_lot",
"phf",
"pin-project-lite",
"prometheus",
"proxy-header",
"rand",
"regex",
"reqwest",
@ -1856,6 +1858,16 @@ version = "2.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "106dd99e98437432fed6519dedecfade6a06a73bb7b2a1e019fdd2bee5778d94"
[[package]]
name = "proxy-header"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc1493f63ddddfba840c3169e997c2905d09538ace72d64e84af6324c6e0e065"
dependencies = [
"pin-project-lite",
"tokio",
]
[[package]]
name = "quick-error"
version = "1.2.3"