proxy-protocol
proxy-protocol copied to clipboard
HAProxy PROXY protocol implementation in Rust.
# Background I am working on a project that uses a std::io::BufReader. When writing tests for edge cases, I was testing cases where weird things align in weird ways with...
I added support for TLV extensions, as documented in proxy-protocol.txt Comes with tests. This will be a version bump, because the Version2 struct now has extra fields. (FWIW, I think...
This is a small change to ensure the crate properly depends on the snafu features it needs. Don't use tilde requirements unnecessarily, and ensure things build when resolving dependencies to...
Version 2 defines "Type-Length-Values" that should be possible to parse. Perhaps this is worth throwing behind a feature gate? The applicable text from the protocol: https://github.com/Proximyst/proxy-protocol/blob/b21c57d34816e142a5ab5142be3292b398ad6f73/proxy-protocol.txt#L520-L702
I found a couple rare EOF panics. v1 = We only check up to the last CR but if LF is cut off we panic. v2 = The TLV TODO...