diff options
Diffstat (limited to 'modules/caddyhttp/fileserver')
-rw-r--r-- | modules/caddyhttp/fileserver/command.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/fileserver/command.go b/modules/caddyhttp/fileserver/command.go index bd740e8..53aa7aa 100644 --- a/modules/caddyhttp/fileserver/command.go +++ b/modules/caddyhttp/fileserver/command.go @@ -85,7 +85,7 @@ func cmdFileServer(fs caddycmd.Flags) (int, error) { if domain != "" { route.MatcherSetsRaw = []caddy.ModuleMap{ - caddy.ModuleMap{ + { "host": caddyconfig.JSON(caddyhttp.MatchHost{domain}, nil), }, } |