Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// How long to wait for the PROXY protocol header to be received.
// Defaults to zero, which means timeout is disabled.
Timeout caddy.Duration `json:"timeout,omitempty"`
// An optional list of CIDR ranges to allow/require PROXY headers from.
Allow []string `json:"allow,omitempty"`
// contains filtered or unexported fields
}
Handler is a connection handler that accepts the PROXY protocol.
func (*Handler) CaddyModule ¶
func (*Handler) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
type MatchProxyProtocol ¶
type MatchProxyProtocol struct{}
func (*MatchProxyProtocol) CaddyModule ¶
func (*MatchProxyProtocol) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*MatchProxyProtocol) Match ¶
func (m *MatchProxyProtocol) Match(cx *layer4.Connection) (bool, error)
Match returns true if the connection looks like it is using the Proxy Protocol.
func (*MatchProxyProtocol) UnmarshalCaddyfile ¶
func (m *MatchProxyProtocol) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile sets up the MatchProxyProtocol from Caddyfile tokens. Syntax:
proxy_protocol
Click to show internal directories.
Click to hide internal directories.