Skip to content

Commit 3a92c81

Browse files
document Wrapper
1 parent 3d07dfb commit 3a92c81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wrapper.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"github.com/mastercactapus/proxyprotocol"
1010
)
1111

12+
// Wrapper provides PROXY protocol support to Caddy by implementing the caddy.ListenerWrapper interface. It must be loaded before the `tls` listener.
1213
type Wrapper struct {
1314
// Timeout specifies an optional maximum time for the PROXY header to be received. If zero, timeout is disabled. Default is 5s.
1415
Timeout caddy.Duration `json:"timeout,omitempty"`

0 commit comments

Comments
 (0)