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

Add method to get SSL cipher from the SSL TLV #91

Closed dgl closed 2 years ago

dgl commented 2 years ago

Tests are using a header captured from haproxy with "proxy-v2-options ssl-cipher" set.

To use this with haproxy you also need to set the ssl-cipher option, something like:

backend test
  default-server send-proxy-v2-ssl proxy-v2-options ssl-cipher
  server a [::1]:8080
coveralls commented 2 years ago

Coverage Status

Coverage remained the same at 95.563% when pulling 8349a66230fec40dd110fb64aa6fefd031a0a9f7 on dgl:ssl-cipher into 1966d35336fbd6e5f4204453c6a269d16e01b027 on pires:main.