mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-21 06:16:31 -04:00
reverseproxy: Minor tweaks
We'll need that context in v2.1 when the transport can manage its own client certificates; see #3198
This commit is contained in:
@@ -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),
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user