{"modulePath":"github.com/javaarchive/caddy-l4","version":"v0.0.0-20231222073840-8b6e8b619cb6","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package l4proxyprotocol\n\n## Functions\n\n```go\nfunc GetConn(cx *layer4.Connection) net.Conn\n```\nGetConn gets the connection which holds the information received from the PROXY protocol.\n\n## Types\n\n```go\ntype Handler struct {\n\t// How long to wait for the PROXY protocol header to be received.\n\t// Defaults to zero, which means timeout is disabled.\n\tTimeout caddy.Duration `json:\"timeout,omitempty\"`\n\n\t// An optional list of CIDR ranges to allow/require PROXY headers from.\n\tAllow []string `json:\"allow,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nHandler is a connection handler that accepts the PROXY protocol.\n\n```go\nfunc (Handler) CaddyModule() caddy.ModuleInfo\n```\nCaddyModule returns the Caddy module information.\n\n```go\nfunc (h *Handler) Handle(cx *layer4.Connection, next layer4.Handler) error\n```\nHandle handles the connections.\n\n```go\nfunc (h *Handler) Provision(ctx caddy.Context) error\n```\nProvision sets up the module.\n\n```go\ntype MatchProxyProtocol struct{}\n```\n\n```go\nfunc (MatchProxyProtocol) CaddyModule() caddy.ModuleInfo\n```\nCaddyModule returns the Caddy module information.\n\n```go\nfunc (m MatchProxyProtocol) Match(cx *layer4.Connection) (bool, error)\n```\nMatch returns true if the connection looks like it is using the Proxy Protocol.\n\n","path":"github.com/javaarchive/caddy-l4/modules/l4proxyprotocol","name":"l4proxyprotocol","synopsis":"","isRedistributable":true}
