Documentation
¶
Index ¶
- type ListenerWrapper
- func (ListenerWrapper) CaddyModule() caddy.ModuleInfo
- func (lw *ListenerWrapper) Cleanup() error
- func (lw *ListenerWrapper) Provision(ctx caddy.Context) error
- func (lw *ListenerWrapper) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (lw *ListenerWrapper) WrapListener(l net.Listener) net.Listener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListenerWrapper ¶
type ListenerWrapper struct { TCP bool `json:"tcp,omitempty"` UDP bool `json:"udp,omitempty"` // contains filtered or unexported fields }
ListenerWrapper implements caddy.ListenerWrapper. It is used to extract the ClientHello from the incoming TLS connection before it reaches the "tls" in caddy.listeners
For clienthellod to work, it must be placed before the "tls" in the Caddyfile's listener_wrappers directive. For example:
listener_wrappers { clienthellod tls }
func (ListenerWrapper) CaddyModule ¶
func (ListenerWrapper) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*ListenerWrapper) Cleanup ¶ added in v0.2.1
func (lw *ListenerWrapper) Cleanup() error
func (*ListenerWrapper) Provision ¶
func (lw *ListenerWrapper) Provision(ctx caddy.Context) error
func (*ListenerWrapper) UnmarshalCaddyfile ¶
func (lw *ListenerWrapper) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
func (*ListenerWrapper) WrapListener ¶
func (lw *ListenerWrapper) WrapListener(l net.Listener) net.Listener
Click to show internal directories.
Click to hide internal directories.