Here is the Pull Request: https://github.com/undertow-io/undertow/pull/699
Let me know if you have questions or propose changes. Currently, TCP over
IPv4 and IPv6 and the LOCAL protocol is supported. UDP and Unix sockets
aren't. I tested this successfully on AWS with a Network Load Balancer and
Proxy Protocol v2 enabled. It would be good to test with Proxy protocol v1
as well, just to make sure I didn't break that. The code will automatically
determine which version is used.
On Mon, Dec 10, 2018 at 3:47 PM Ulrich Herberg <ulrich.herberg(a)oath.com>
Great! Let me clean up the code a bit and then create a PR (assuming
is the process?)
On Mon, Dec 10, 2018 at 3:32 PM Stuart Douglas <sdouglas(a)redhat.com>
> This sounds great, we would definitely be interested in supporting
> version 2 as well.
> On Tue, Dec 11, 2018 at 9:26 AM Ulrich Herberg <ulrich.herberg(a)oath.com>
>> We want to use Undertow in our company (Oath/Yahoo/Verizon) in an AWS
>> environment. Since we plan to use AWS Network Load Balancers (NLB) using
>> Fargate, we need the proxy protocol in order to get the source IP address
>> of an incoming HTTP(S) packet. However, Undertow only supports Proxy
>> Protocol Version 1. I have implemented version 2 (for IPv4 and IPv6),
>> including unit tests and it works fine. I wonder if I can contribute the
>> code to the open source release of Undertow.
>> Let me know if you are interested, then I can provide the code.
>> Best regards
>> undertow-dev mailing list