mirror of
https://github.com/caddyserver/website.git
synced 2025-04-20 12:15:08 -04:00
Fix caddy config import path for example module
This commit is contained in:
parent
30060ce9af
commit
f1ce3bee82
1 changed files with 4 additions and 4 deletions
|
@ -293,8 +293,8 @@ import (
|
|||
"os"
|
||||
|
||||
"github.com/caddyserver/caddy/v2"
|
||||
"github.com/caddyserver/caddy/v2/config/caddyfile"
|
||||
"github.com/caddyserver/caddy/v2/config/httpcaddyfile"
|
||||
"github.com/caddyserver/caddy/v2/caddyconfig/caddyfile"
|
||||
"github.com/caddyserver/caddy/v2/caddyconfig/httpcaddyfile"
|
||||
"github.com/caddyserver/caddy/v2/modules/caddyhttp"
|
||||
)
|
||||
|
||||
|
@ -316,8 +316,8 @@ type Middleware struct {
|
|||
// CaddyModule returns the Caddy module information.
|
||||
func (Middleware) CaddyModule() caddy.ModuleInfo {
|
||||
return caddy.ModuleInfo{
|
||||
ID: "http.handlers.visitor_ip",
|
||||
New: func() caddy.Module { return new(Middleware) },
|
||||
Name: "http.handlers.visitor_ip",
|
||||
New: func() caddy.Module { return new(Middleware) },
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue