summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/reverseproxy/command.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-04-09 13:22:05 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-04-09 13:22:05 -0600
commitf29023bf8f7de84faf0db8233b0c4b3b4ce74e93 (patch)
tree51a90c5ccf4b86a3a2329740b9737a63474ec4fa /modules/caddyhttp/reverseproxy/command.go
parent85f5f47f31f09f8dda6f6ab77749edddb17551a1 (diff)
reverseproxy: Minor tweaks
We'll need that context in v2.1 when the transport can manage its own client certificates; see #3198
Diffstat (limited to 'modules/caddyhttp/reverseproxy/command.go')
-rw-r--r--modules/caddyhttp/reverseproxy/command.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/reverseproxy/command.go b/modules/caddyhttp/reverseproxy/command.go
index cde3084..c203126 100644
--- a/modules/caddyhttp/reverseproxy/command.go
+++ b/modules/caddyhttp/reverseproxy/command.go
@@ -121,7 +121,7 @@ func cmdReverseProxy(fs caddycmd.Flags) (int, error) {
urlHost := fromURL.Hostname()
if urlHost != "" {
route.MatcherSetsRaw = []caddy.ModuleMap{
- caddy.ModuleMap{
+ {
"host": caddyconfig.JSON(caddyhttp.MatchHost{urlHost}, nil),
},
}