Documentation
¶
Overview ¶
Package proxyproto implements tnl's strict PROXY protocol v2 boundary. it accepts one TCP-over-IPv4 or TCP-over-IPv6 header and rejects other versions, commands, transports, extensions, and duplicate headers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorCode ¶
type ErrorCode string
const ( ErrorInvalidSignature ErrorCode = "invalid_signature" ErrorUnsupportedVersion ErrorCode = "unsupported_version" ErrorUnsupportedCommand ErrorCode = "unsupported_command" ErrorUnsupportedTransport ErrorCode = "unsupported_transport" ErrorInvalidLength ErrorCode = "invalid_length" ErrorTruncatedHeader ErrorCode = "truncated_header" ErrorInvalidAddress ErrorCode = "invalid_address" ErrorDuplicateHeader ErrorCode = "duplicate_header" )
type ProtocolError ¶
type ProtocolError struct {
Code ErrorCode
}
func (*ProtocolError) Error ¶
func (e *ProtocolError) Error() string
Click to show internal directories.
Click to hide internal directories.