pires / go-proxyproto

A Go library implementation of the PROXY protocol, versions 1 and 2.
Apache License 2.0
478 stars 107 forks source link

ProxyProtocol usage with TLS #77

Open rmahidhar opened 3 years ago

rmahidhar commented 3 years ago

I want to use go-proxyproto with TLS and couldn't find any examples in the repo. Appreciate if you can provide reference code for using go-proxyproto with TLS.

pires commented 1 year ago

The tests are a good place to look at, eg https://github.com/pires/go-proxyproto/blob/main/protocol_test.go#L954. However, having Go example tests would be a pretty cool addition.