Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RandomIPv6 ¶
type RandomIPv6 struct{}
RandomIPv6 is a Caddy HTTP middleware module that injects a randomized IPv6 address into the X-Real-IP and X-Forwarded-For headers per request.
func (RandomIPv6) CaddyModule ¶
func (RandomIPv6) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*RandomIPv6) ServeHTTP ¶
func (r *RandomIPv6) ServeHTTP(w http.ResponseWriter, req *http.Request, next caddyhttp.Handler) error
ServeHTTP generates a new random IPv6 address for each request, sets it into the required headers, and then passes control to the next handler.
Click to show internal directories.
Click to hide internal directories.