{"modulePath":"github.com/InkerBot/caddy2-proxyprotocol","version":"v0.0.0-20230718181335-9f5054739e71","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package caddy2proxyprotocol\n\n## Types\n\n```go\ntype Wrapper struct {\n\t// Timeout specifies an optional maximum time for the PROXY header to be received. If zero, timeout is disabled. Default is 5s.\n\tTimeout caddy.Duration `json:\"timeout,omitempty\"`\n\n\t// Allow is 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```\nWrapper provides PROXY protocol support to Caddy by implementing the caddy.ListenerWrapper interface. It must be loaded before the \\`tls\\` listener.\n\n```go\nfunc (Wrapper) CaddyModule() caddy.ModuleInfo\n```\n\n```go\nfunc (pp *Wrapper) Provision(ctx caddy.Context) error\n```\n\n```go\nfunc (w *Wrapper) UnmarshalCaddyfile(d *caddyfile.Dispenser) error\n```\nUnmarshalCaddyfile sets up the listener wrapper from Caddyfile tokens. Syntax:\n\n\tproxy_protocol {\n\t    timeout \u003cduration\u003e\n\t    allow \u003cIPs...\u003e\n\t}\n\n```go\nfunc (pp *Wrapper) WrapListener(l net.Listener) net.Listener\n```\n\n","path":"github.com/InkerBot/caddy2-proxyprotocol","name":"caddy2proxyprotocol","synopsis":"","isRedistributable":true}
