diff --git a/tlvparse/azure.go b/tlvparse/azure.go index 1803e42..b09a02b 100644 --- a/tlvparse/azure.go +++ b/tlvparse/azure.go @@ -23,6 +23,7 @@ func isAzurePrivateEndpointLinkID(tlv proxyproto.TLV) bool { // AzurePrivateEndpointLinkID returns linkID if given TLV matches Azure Private Endpoint LinkID format // // Format description: +// // Field Length (Octets) Description // Type 1 PP2_TYPE_AZURE (0xEE) // Length 2 Length of value diff --git a/tlvparse/ssl.go b/tlvparse/ssl.go index 7575671..b242ba6 100644 --- a/tlvparse/ssl.go +++ b/tlvparse/ssl.go @@ -26,12 +26,14 @@ const ( }; */ type PP2SSL struct { - Client uint8 // The field is made of a bit field from the following values, + // The Client field is made of a bit field from the following values, // indicating which element is present: PP2_BITFIELD_CLIENT_SSL, // PP2_BITFIELD_CLIENT_CERT_CONN, PP2_BITFIELD_CLIENT_CERT_SESS - Verify uint32 // Verify will be zero if the client presented a certificate + Client uint8 + // Verify will be zero if the client presented a certificate // and it was successfully verified, and non-zero otherwise. - TLV []proxyproto.TLV + Verify uint32 + TLV []proxyproto.TLV } // Verified is true if the client presented a certificate and it was successfully verified