From f29023bf8f7de84faf0db8233b0c4b3b4ce74e93 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 9 Apr 2020 13:22:05 -0600 Subject: reverseproxy: Minor tweaks We'll need that context in v2.1 when the transport can manage its own client certificates; see #3198 --- modules/caddyhttp/reverseproxy/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/caddyhttp/reverseproxy/command.go') 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), }, } -- cgit v1.2.3